Data display
Badge
Tiny dot indicator placed next to a title or icon.
import { Badge } from "datui";Playground
<Badge appearance="accent" />Examples
Appearances
Updates NewAlerts Important
Accessibility
- The dot is decorative;
childrenare rendered visually hidden as its accessible text.
API
Badge
Tiny dot indicator placed next to a title or icon.
| Prop | Type | Default | Description |
|---|---|---|---|
| appearance | "accent" | "negative" | accent | `accent` marks something new, `negative` is a prominent red dot. |
| children | string | — | Screen-reader-only label, e.g. "new". The dot itself is decorative. |
| className | string | — |