Chip
stableA compact label with optional delete action.
Basic usage
Ready
Examples
Variants
Chips support default, secondary and outline treatments.
DefaultSecondaryOutline
Deletable chip
Pass onDelete to show the dismiss action.
Removable
Variants, colors and slots
Chips now cover MUI-style filled/outlined, colors, sizes, icons and delete actions.
PrimarySuccess*Small
Features
- Variant styles.
- Optional delete button.
Installation
bash
pnpm dlx structyl add chipAPI Reference
Chip
Compact label with optional icon/avatar/delete action.
| Prop | Type | Default |
|---|---|---|
| label | React.ReactNodeLabel content. | — |
| variant | 'filled' | 'outlined' | 'default' | 'secondary' | 'outline'Chip treatment. | 'filled' |
| color | 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'destructive' | 'muted'Tokenized chip color. | 'default' |
| size | 'small' | 'medium'Chip height. | 'medium' |
| icon | avatar | deleteIcon | React.ReactNodeOptional leading or delete visuals. | — |
| onDelete | () => voidShows delete button and handles removal. | — |
| clickable | booleanAdds button semantics and focusability. | false |
| disabled | booleanDisable chip interactions. | false |
| className | stringAdditional Tailwind classes merged with the component defaults. | — |