Steps
Numbered ordered list for sequential flows. Children should be <li> elements — there is no active-step prop; mark the current step with aria-current="step" on the list item.
Examples
Default
Three setup steps.
- Install package
- Import styles
- Render components
Demo.tsxtsx
import { Steps } from '@var-ui/react';
<Steps>
<li>Install package</li>
<li>Import styles</li>
<li>Render components</li>
</Steps>Active step
Highlight the current step with aria-current="step" on the active <li>.
- Choose a plan
- Enter billing details
- Confirm purchase
Demo.tsxtsx
import { Steps } from '@var-ui/react';
<Steps>
<li>Choose a plan</li>
<li aria-current="step">Enter billing details</li>
<li>Confirm purchase</li>
</Steps>Props
Accessibility
Renders an <ol>. Use aria-current="step" on the active list item so assistive tech can announce progress. Keep step labels concise and sequential.