Chip API
View componentThe full prop reference for the Chip component. A compact label with optional delete action.
Import
tsx
import { Chip } from '@structyl/styled';Props
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. | — |
Source code
If you didn't find what you need here, read the component implementation .