Component docs
Loading
"use client";
import { Chip } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
onRemove | () => void | — | — |
size | ComponentSize | — | Size from the shared scale (xs, sm, md, lg). |
tone | Tone | — | Colour role (neutral, primary, danger, success, warning, info). |
variant | ComponentVariant | — | Emphasis (solid, secondary, soft, outline, ghost). |
removeLabel | string | — | — |
onRemove() => void
sizeComponentSize
Size from the shared scale (xs, sm, md, lg).
toneTone
Colour role (neutral, primary, danger, success, warning, info).
variantComponentVariant
Emphasis (solid, secondary, soft, outline, ghost).
removeLabelstring
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.
<Chip size="sm" tone="neutral" variant="soft">Chip</Chip>const remove = () => console.log("removed");
<Chip onRemove={remove}>Tag</Chip>const remove = () => console.log("removed");
<Chip size="sm" tone="neutral" variant="soft">Chip</Chip>