UI kit reference
components/Steps
import { … } from 'zidane-ui'ui/src/components/Steps.tsx
Components#
StepsComponent#
Renders the steps as an ordered list, a glyph per status. The status is also spoken (screen readers hear "done", "failed"…).
function Steps(props: StepsProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | StepsProps |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| className? | string | Extra classes on the list. |
| items | readonly StepsItem[] | The steps, in order. |
| label? | string | Accessible name of the list. |
| style? | CSSProperties | Inline styles on the list. |
Interfaces#
StepsItemInterface#
One step of Steps.
interface StepsItemProperties
| Name | Type | Default | Description |
|---|---|---|---|
| detail? | ReactNode | A line under the title. | |
| id? | string | A stable key. Default: the index. | |
| status? | StepStatus | 'pending' | How the step went. |
| title | ReactNode | What the step is. |
StepsPropsInterface#
Types#
StepStatusType#
How one step went.
type StepStatus = 'done' | 'active' | 'pending' | 'failed' | 'skipped'