Skip to main content

StatusIndicator

StatusIndicator component from Scaffald UI component library.

Import​

import { StatusIndicator } from '@scaffald/ui';

Basic Usage​

Live Preview
<ThemeProvider initialTheme="light">
<Row gap={12}>
  <StatusIndicator type="success" />
  <StatusIndicator type="warning" />
  <StatusIndicator type="error" />
  <StatusIndicator type="info" />
</Row>
</ThemeProvider>

Props​

See the TypeScript definitions for the complete props API.

Common Props​

All StatusIndicator components accept standard React Native View props.

Variants​

See component props for available variants.

Examples​

With Labels​

Live Preview
<ThemeProvider initialTheme="light">
<Stack gap={8}>
  <Row gap={8} style={{alignItems: 'center'}}>
    <StatusIndicator type="success" />
    <Text>Online</Text>
  </Row>
  <Row gap={8} style={{alignItems: 'center'}}>
    <StatusIndicator type="warning" />
    <Text>Away</Text>
  </Row>
  <Row gap={8} style={{alignItems: 'center'}}>
    <StatusIndicator type="error" />
    <Text>Offline</Text>
  </Row>
  <Row gap={8} style={{alignItems: 'center'}}>
    <StatusIndicator type="info" />
    <Text>Busy</Text>
  </Row>
</Stack>
</ThemeProvider>

Accessibility​

  • Keyboard navigation support
  • Screen reader compatible
  • ARIA attributes included
  • Focus management

Design Tokens​

This component uses the following design tokens:

  • Colors: colors.{semantic}.{theme}.{variant}
  • Spacing: spacing.*
  • Typography: typography.*

See Design Tokens for more information.

No related components.

Changelog​

See GitHub Releases for version history.