Badge
A small label for a status, a count or a tag, with tones, a pulsing dot and a remove button.
pixikit.com/docs/components/badge
Customize
Tone
Variant
Size
Shape
Dot
Pulse
Props
10| Name | Type | Default | Description |
|---|---|---|---|
tone | "neutral" | "success" | "info" | "warning" | "danger" | "neutral" | What the badge says about its subject. |
variant | "soft" | "outline" | "solid" | "soft" | `soft` tints the badge, `outline` draws a border, `solid` fills it. |
size | "sm" | "md" | "md" | How big the badge is. |
shape | "rounded" | "pill" | "pill" | The corners. |
dot | boolean | false | Shows a small dot before the label. |
pulse | boolean | false | Makes the dot send out a soft ping; needs `dot`. |
onRemove | () => void | None | Shows a remove button; the badge shrinks away, then this is called. |
removeLabel | string | "Remove" | The words a screen reader hears for the remove button. |
children | ReactNode | None | The label. |
className | string | None |