Chip

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.

Chip3D props

PropTypeDefaultDescription
childrenstringText of the chip.
selectedbooleanWhether the chip is selected. Only used with onSelectedChange.
onSelectedChange(selected: boolean) => voidMakes the chip a toggle. Called with the new selected state.
onRemove() => voidAdds a remove button. Called when it is pressed.
iconReactNodeIcon or emoji shown before the text.
disabledbooleanStop the chip from being used.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks