Badge
A compact label for status, counts and categories.
Staticimport { Badge } from 'umbra-ui'
Props
| Prop | Type | Default | Description |
|---|---|---|---|
dot | boolean | false | Shows a status dot before the label. |
size | "sm" | "md" | md | Badge height. |
tone | "accent" | "neutral" | "danger" | "success" | "warning" | "info" | neutral | Colour intent. |
variant | "solid" | "soft" | "outline" | soft | Visual weight. |
Usage notes
Not interactive. For a removable chip, compose your own from a Badge and an IconButton.
Accessibility
- Tone is never the only signal: keep the text meaningful.
- The status dot is decorative.
Import
import { Badge } from 'umbra-ui';
import 'umbra-ui/styles.css'; // once, at the root of your app