Status badges
Show a status such as Draft, In progress or Published next to a list item.
In progress Draft Published v1.0
Recommended API
| Property or element | Type | Example initial value | Description |
|---|---|---|---|
Label | Text | Draft, In progress, Published, v1.0 | Show a short status or version string. |
Appearance | CSS class | Subtle, accent or outlined | Use the appearance that suits the badge’s emphasis. |
Icon | Optional decoration | Dot or arrow | The icon and label use the same height and padding as a text-only badge. |
States
| State | Trigger | Result |
|---|---|---|
static | Render a status. | The text identifies the status or version. |
CSS variables
| Variable | Type | Default | Description |
|---|---|---|---|
--q-text | color | #28302a | Main text and foreground color. |
--q-muted | color | #70776f | Color for secondary text. |
--q-font-size | length | 13px | Base size for the component text. |
--q-accent | color | #344e41 | Accent for active controls, indicators and focus. |
--q-surface | color | #ffffff | Surface for controls and cards. |
--q-border | color | #dce0d8 | Color for outlines and dividers. |
--q-border-width | length | 1px | Thickness of the outline. |
--q-radius | length | 10px | Base corner radius. |
--q-space | length | 4px | Base unit for gaps and padding. |
--q-gap | length | calc(var(--q-space) * 2) | Space between items, based on the spacing unit. |