Badge
Status indicator with label and tone.
On this page
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label required | string | FieldReference | None | Badge text |
tone | BadgeTone | FieldReference | "info" | Color tone |
dot | boolean | false | Show a colored dot |
Example
ts
Badge({ label: "Healthy", tone: "healthy", dot: true })
Badge({ label: row.status })Supporting types
BadgeTone
export type BadgeTone =
| "healthy"
| "warning"
| "unavailable"
| "info"
| "muted";