UI Library

Chip

Default
Prop Type Default Value Notes
activebooleanfalse
Pressed state in toggle mode; applying it renders the pill as a pressable button (the removable row is then ignored).
appearance'soft' | 'solid' | 'outline''soft'
Named pill presentation: soft tints the fill, solid fills it, outline keeps it transparent. A caller `chipClass` wins.
chipClassstring?—
Full pill class override; wins over the named variant and appearance.
disabledbooleanfalse
Disables the remove button. Applies in removable mode.
labelstring—
Pill text.
removeButtonClassstring?''
Extra classes for the remove button. Applies in removable mode.
removeButtonStylestring?''
Inline style for the remove button. Applies in removable mode.
removeLabelstring?locale
Accessible name for the remove button. Applies in removable mode.
removablebooleanfalse
Offers a remove cross next to the label; `onRemove` is the handler.
size'xs' | 'sm' | 'md' | 'lg' | 'xl' | number'md'
Control scale; numbers are icon-scale pixels. Chip owns its size-scaled padding, font, and line.
stylestring?''
Inline style for the pill.
tooltipstring?—
Tooltip text for the pill.
variant'cyan' | 'sky' | 'violet' | 'amber' | 'fuchsia' | 'emerald' | 'rose' | 'neutral''cyan'
Named chip color; `chipClass` wins when both are set.
onRemove() => void——Handler for the remove affordance; the cross renders when the chip is removable.
onclick() => void——Toggle handler; passing it renders the pill as a pressable button (the active row’s mode).