Skip to main content

Chip

Chip component from Scaffald UI component library.

Import​

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

Basic Usage​

Live Preview
<ThemeProvider initialTheme="light">
<Row gap={8} style={{flexWrap: 'wrap'}}>
  <Chip>Default</Chip>
  <Chip selected>Selected</Chip>
  <Chip closeIcon>Dismissible</Chip>
  <Chip disabled>Disabled</Chip>
</Row>
</ThemeProvider>

Props​

See the TypeScript definitions for the complete props API.

Common Props​

All Chip components accept standard React Native View props.

Variants​

See component props for available variants.

Examples​

Sizes​

Live Preview
<ThemeProvider initialTheme="light">
<Stack gap={12}>
  <Row gap={8} style={{flexWrap: 'wrap'}}>
    <Chip size="sm">Small</Chip>
    <Chip size="md">Medium</Chip>
    <Chip size="lg">Large</Chip>
  </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.