Component docs
Loading
import { Tag } from "@pixxl-tools/components";
// In Server Components:
import { Tag } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
size | ComponentSize | — | Size from the shared scale (xs, sm, md, lg). |
tone | Tone | — | Colour role (neutral, primary, danger, success, warning, info). |
variant | ComponentVariant | — | Default "soft". |
onRemove | () => void | — | Renders a trailing × button that calls this handler. |
removeLabel | string | — | Accessible name of the remove button. Default: "Remove" (catalog chip.remove). |
sizeComponentSize
Size from the shared scale (xs, sm, md, lg).
toneTone
Colour role (neutral, primary, danger, success, warning, info).
variantComponentVariant
Default "soft".
onRemove() => void
Renders a trailing × button that calls this handler.
removeLabelstring
Accessible name of the remove button. Default: "Remove" (catalog chip.remove).
Other props are passed to the root element (HTMLAttributes<HTMLSpanElement>), including className, style, id and aria-* attributes.
Complex object props use fixed fixtures. Primitive props stay editable.
<Tag size="sm" tone="neutral" variant="soft">Tag</Tag><Tag>Canvas</Tag><Tag size="sm" tone="neutral" variant="soft">Tag</Tag>