03 · badgesActions & Primitives5 Variations
Badges and Tags
Compact semantic status indicators, filterable category pills, removable rounded tags, icon-paired badges, and live numeric notification counters.
badgestagspillsstatusnotifications
Status Badges
badges/status-badges
Loading variation badges/status-badges...
Component Information
Semantic live-state indicators pairing neutral, accent, info, warning, and danger tones with crisp dot markers and optional pulse animation.
- Variation ID
- badges/status-badges
- Motion Engine
- css
- Source File
- src/labs/components/components/badges/variations/status-badges.tsx
Reduced Motion & Accessibility
Ping halo uses Tailwind motion-safe:animate-ping so reduced-motion users see a static dot.
- Paired with text labels so status never relies on color alone.
Dependencies
- class-variance-authority^0.7.1Required
Semantic tone and size matrix
Usage Documentation
import { StatusBadge } from '@/src/labs/components/components/badges';
export function DeploymentState() {
return <StatusBadge showAllTones={false} tone="accent" label="Production Live" pulse />;
}Props API (5)
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | 'Production Live' | Status text when rendering single badge. |
| tone | 'neutral' | 'accent' | 'info' | 'warning' | 'danger' | 'accent' | Semantic palette. |
| size | 'sm' | 'md' | 'lg' | 'md' | Badge padding and font scale. |
| pulse | boolean | true | Enables ping halo on indicator dot when motion is permitted. |
| showAllTones | boolean | true | Renders full multi-tone matrix for previewing. |