Status
Semantic status indicator with a colored dot or icon plus an optional label. Use for compact state labels in tables, lists, and summaries — not for interactive chips or alerts. Empty the default slot for icon-only.
Overview
The catnip-status custom element shows a status dot (default) plus label text from the default slot. Set leftIcon (or leftIconSlot) to replace the dot with a Catnip icon. With no slotted text it uses icon-only layout.
| Prop | Role |
|---|---|
intent | Semantic color: neutral, informative, success, warning, danger, disabled, brand |
filled | Pill with a subtle background. Off is indicator + label only |
size | Density m (default) or l |
leftIcon | Optional Catnip icon; replaces the dot |
statusAriaLabel | Accessible name when the default slot is empty (required for icon-only) |
Live example
Guidelines
When to use
- Show a compact state next to a row, cell, or heading (for example Active, Pending, Error).
- Prefer the unfilled treatment in dense tables; set
filledwhen the status needs more visual weight on a busy surface. - Use the dot for a generic indicator. Pass
leftIconwhen the design uses a catalog icon (clock, info, tick-circle, and so on).
When not to use
- Do not use Status for actions or selection — use Chip or Button.
- Do not use Status for full-width system messages — use Alert. Use Toast for viewport overlay feedback.
Composition
In a Table cell:
html
<catnip-table-cell>
<catnip-status intent="success">Active</catnip-status>
</catnip-table-cell>Icon + label (Figma examples):
html
<catnip-status intent="neutral" left-icon="clock">Waiting</catnip-status>
<catnip-status intent="informative" left-icon="info">Active</catnip-status>
<catnip-status intent="success" left-icon="tick-circle">Finished</catnip-status>
<catnip-status filled intent="warning" left-icon="warning">Pending</catnip-status>Icon-only — statusAriaLabel (HTML: status-aria-label) is required:
html
<catnip-status intent="success" left-icon="tick-circle" status-aria-label="Finished"></catnip-status>Intents
| Intent | Typical meaning |
|---|---|
| neutral | Default / unknown |
| informative | Informational / in review |
| success | Completed / healthy |
| warning | Attention needed |
| danger | Error / failed |
| disabled | Unavailable / inactive |
| brand | Brand-accented highlight |