Primitives
Badge
Inline status chip in 3 variants, 6 colors and 2 sizes, with a dot or an icon. Every variant uses an ink measured for its fill.
Preview
solid
neutralbrandsuccesswarningerrorinfo
soft
neutralbrandsuccesswarningerrorinfo
outline
neutralbrandsuccesswarningerrorinfo
with an icon
passingfailedmainNEWneutralbrandsuccesswarningerrorinfo
with a dot
open to workpartialsyncingidle
Installation
Resolves dependencies, copies the source, and installs npm packages automatically.
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "solid" | "soft" | "outline" | "soft" | Fill style |
| color | "neutral" | "brand" | "success" | "warning" | "error" | "info" | "neutral" | Semantic color token |
| size | "sm" | "md" | "md" | Height and padding |
| dot | boolean | false | Renders a colored status dot before the label |
| icon | Icon | ReactElement | - | A Phosphor icon, or an icon element, before the label, sized to the badge. Wins over dot |