Primitives

Chip

Toggleable tag — 28px pill. Pressed state flips to ink/ink-foreground. Optional remove button.

installnpx shadcn@latest add https://br-design-system2.vercel.app/r/br-primitives.json

Preview

import { Chip } from "@/components/br/primitives";

<Chip>react</Chip>
<Chip onRemove={() => remove()}>tokens</Chip>
<Chip pressed>selected</Chip>

// toggleable
<Chip pressed={selected.has(t)} onPressedChange={() => toggle(t)}>
  {t}
</Chip>

Props

PropTypeDefaultDescription
pressedbooleanActive state — fills with ink.
onPressedChange(p: boolean) => voidFires on click.
onRemove() => voidIf provided, shows an X icon.