Process Steps
BlockBasic Usage
Loading...
Installation
pnpm add @corew500/uiUsage
import { ProcessSteps } from "@corew500/ui/blocks/process-steps"
<ProcessSteps>Content</ProcessSteps>Horizontal
Loading...
CMS Integration
Loading...
API Reference
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| steps* | ProcessStep[] | — | Array of steps to display |
| layout | enum | vertical | Layout direction. - `vertical`: Steps stacked vertically with connectors on the left - `horizontal`: Steps in a row with connectors between them |
| connector | enum | line | Connector line style. - `line`: Solid line - `dashed`: Dashed line - `none`: No connector |
| indicatorStyle | enum | number | Indicator display style. - `number`: Show step number (1, 2, 3...) - `icon`: Use the step's indicator prop as-is - `dot`: Show a simple dot |
| alternate | enum | false | Alternate step alignment (zigzag pattern). Only applies to vertical layout. |
Accessibility
Screen Readers
- - Uses semantic list markup (ol > li) for screen readers
- Connector lines are decorative (aria-hidden)
Additional
- Step titles provide accessible content
Localization
Translatable Content
- - Component accepts pre-resolved translated strings
- All text customizable: title, description, badge