chip API
data/chip.tsx
Chip
Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | ChipVariant | "default" | "info" | "success" | "warning" | "danger" | "outline" | undefined | ChipVariant.Default | Color scheme. |
icon | any | — | Leading icon or avatar. |
removeLabel | string | undefined | Remove | Accessible label for the remove button. |
Show native HTML props
Native HTML Props
| Prop | Type | Default | Description |
|---|---|---|---|
onRemove | (() => void) | undefined | — | Shows a remove button and makes the chip dismissible. The handler makes this a client-boundary usage; without it the chip is a Server Component. |