Feedback
Badge
Marks concise content with semantic variants and optional polymorphic rendering.
idle
Usage
Examples
Semantic variants
Use badges to make compact status and category values scannable.
Sizes
Polymorphic link
Render a badge as a link when the status needs a destination.
Recommendations
| Guidance | Practice |
|---|---|
| Do | Use short labels for status or category. Pair semantic color with text that carries the meaning. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Use Button or Link for explicit actions. A badge must not be the only indication of a critical state. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | "default" | Sets the semantic appearance of the badge. |
| | "default" | Sets the badge dimensions. |
| | — | Visible badge content. |
| | — | Composes the badge onto another element for polymorphic rendering. |