A small raised pill that can be selected like a filter, removed like a tag, or both. Toggle chips use aria-pressed and remove buttons are named.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| children | string | Text of the chip. | |
| selected | boolean | Whether the chip is selected. Only used with onSelectedChange. | |
| onSelectedChange | (selected: boolean) => void | Makes the chip a toggle. Called with the new selected state. | |
| onRemove | () => void | Adds a remove button. Called when it is pressed. | |
| icon | ReactNode | Icon or emoji shown before the text. | |
| disabled | boolean | Stop the chip from being used. | |
| className | string | Extra classes added to the outer element. |