ortaui
  1. Components
  2. 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/chip

Examples#

Static#

Toggle#

Removable#

API reference#

PropTypeDefaultDescription
surface"default" | "raised"autoLook 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.
pressedboolean-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.