StateIndicator
stableAnimated dot indicator for AI interaction states — CSS-only animations with prefers-reduced-motion support
import { StateIndicator } from "@nodus/design-system/patterns"Demo coming soon
Props
| Prop | Type | Default | Description |
|---|---|---|---|
statereq | 'loading' | 'thinking' | 'acting' | 'confirming' | 'error' | 'recovery' | — | The AI interaction state to animate. |
size | 'sm' | 'md' | 'md' | Dot size: sm=8px, md=12px. |
staterequiredType
'loading' | 'thinking' | 'acting' | 'confirming' | 'error' | 'recovery'Default —The AI interaction state to animate.
sizeType
'sm' | 'md'Default 'md'Dot size: sm=8px, md=12px.
Metadatasemantic
Design Rationale
This component was designed to express:
Explore Related
StateBadge→
Color-coded uppercase badge for the six canonical AI interaction states (loading, thinking, acting, confirming, error, recovery)
ScenarioScript→
Linear step sequence for documenting agent interaction flows — shows state badge, copy, and annotation per step
AgentThinkingIndicator→
Animated loading indicator communicating an agent is actively processing. Supports text label, step counter, and elapsed time. Uses temporal color.
Was this helpful?