- Components
- Data display
Chip
A pill filter. Give it pressed and onPressedChange to make it a toggle, onRemove for a removable tag.
Installation#
npx shadcn add @ortaui/chipExamples#
Static#
Toggle#
Removable#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| surface | "default" | "raised" | auto | Look on a panel. Unset: raised (page fill + border) inside any [data-surface] container. "raised" forces it anywhere; "default" keeps the muted fill even inside a surface. |
| pressed | boolean | - | When defined the chip is a toggle (aria-pressed). |
| onPressedChange | (pressed: boolean) => void | - | Called with the next state. |
| onRemove | () => void | - | Shows a remove button after the label. |