Oddmash UI
All components

Badge

Label a status or category.

Usage

Describe status or category in a few words. Use semantic tones for meaningful operational states and neutral for unknown or ordinary categories. danger and error share one visual tone, as do info and active; pick one name from each pair and use it consistently.

Accessibility

Always include meaningful text; color alone should not communicate status. Badge is non-interactive. Use a button for an action.

PropertyTypeDefault
toneneutral | accent | success | warning | danger | error | info | activeneutral
childrenReactNodeNone
classNamestringNone
refHTMLSpanElementNone
<Badge>Draft</Badge>
<Badge tone="accent">Active</Badge>
<Badge tone="active">Running</Badge>
<Badge>Waiting</Badge>
<Badge tone="success">Succeeded</Badge>
<Badge tone="danger">Failed</Badge>
<Badge tone="warning">Attention required</Badge>
<Badge>Unknown</Badge>
<Badge>v0.12.0</Badge>

Interactive documentation