- Context Components
- Badges
Context Components
Badges
Add compact labels for status, availability and release channels.
Use a badge beside a heading or sentence when a short label helps readers scan it. Badges are labels, not buttons or links.
Example
Available Beta Deprecated Planned<Badge color="green" icon="check">Available</Badge>
<Badge color="blue" shape="pill">Beta</Badge>
<Badge color="red" stroke>Deprecated</Badge>
<Badge disabled>Planned</Badge>
Properties
| Property | Default | Purpose |
|---|---|---|
children | None | Label text. |
color | gray | gray, blue, green, yellow, orange, red, purple, white, surface, white-destructive, or surface-destructive. Unrecognized values use gray; this is not a hex-color prop. |
size | md | xs, sm, md, or lg. |
shape | rounded | rounded or pill. |
icon | None | Named Font Awesome icon. |
iconType | Renderer default | Font Awesome icon style. |
stroke | false | Transparent background with a colored border. |
disabled | false | Reduced opacity; does not enforce a permission or disable another control. |
