Overview
TheStatusLabel component displays status text with a matching icon indicator. It’s designed for feed items, workflow steps, and process status displays.
Basic Usage
Status Types
Success
For completed or successful operations:Failure
For failed operations or errors:Run
For currently running or in-progress operations:Alert
For operations requiring attention:Queued
For pending or queued operations:Skip
For skipped operations:Signed
For signed or verified operations:In Feed Items
TheStatusLabel is commonly used in feed components:
Workflow Steps
Props
The status type that determines the icon and text color.Possible values:
'success'- Green text with success icon'failure'- Red text with failure icon'run'- Yellow/orange text with running icon'alert'- Yellow/orange text with alert icon'queued'- Gray text with queued icon'skip'- Default styling with skip icon'signed'- Default styling with signed icon
The text label displayed next to the status icon.
Color Mapping
The component automatically applies colors based on status:| Status | Text Color | Icon |
|---|---|---|
success | Green (text-foreground-success) | Success checkmark |
failure | Red (text-foreground-critical) | Error X |
run | Yellow/orange (text-foreground-attention) | Running spinner |
alert | Yellow/orange (text-foreground-attention) | Alert triangle |
queued | Gray (text-foreground-default-secondary) | Queued icon |
skip | Default | Skip icon |
signed | Default | Signed icon |
Layout
The component uses a horizontal flex layout with:- 0.25rem (1) gap between label and icon
- Items centered vertically
- Label uses Inter font, medium weight, base size
Icon Component
The status icons are rendered using the internalFeedIconStatus component, which provides consistent icon styling across all status types.
Use Cases
- Feed items: Display status in activity feeds and timelines
- Workflow steps: Show progress in multi-step processes
- Task lists: Indicate completion status of tasks
- Process monitoring: Real-time status of background jobs
- Document states: Show document processing status
Accessibility
- Color is not the only indicator (icons are also used)
- Text labels provide clear status information
- Sufficient contrast ratios for all status colors
- Icons are sized appropriately for readability
TypeScript
The component is fully typed with theStatusLabelProps interface:
Related Components
- TagStatus - For colored status badges
- FeedItem - For activity feed items
- Notification - For status notifications
- ProgressBar - For percentage-based progress