Chip
Pill-shaped label in six semantic colors and three variants - soft, solid, and outline. Add a leading dot for Live / Pending / Error-style statuses, or an icon for contextual labels.
Installation
npx stepwise-ui add chip
Soft
Tinted fill with coloured text - the default choice for inline status labels.
Solid
Saturated fill with white text - use for high-emphasis labels that need to stand out.
Outline
Transparent fill with a subtle hue-matched border - the lightest option.
With icon
The icon prop accepts any React node and renders it to the left of the label.
Dot
Pass dot for a leading status dot. Only the dot carries the semantic color - the chip body stays neutral so the dot reads as a pure signal.
Usage
Common use case: status indicators in a list or table row.
Sizes
Three sizes: sm, default, and lg.
Props
PropTypeDescription
color"danger" | "warning" | "success" | "info" | "magical" | "idle"Semantic color. Default: "idle".
variant"soft" | "solid" | "outline"Visual style. Default: "outline".
size"sm" | "default" | "lg"20 / 24 / 28 px. Default: "default".
dotbooleanLeading status dot in the chip's color.
iconReact.ReactNodeOptional left icon element.