Skip to content

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"…).

TypeScript
function Steps(props: StepsProps): Element
Parameters
NameTypeDescription
propsStepsProps

StepsProps.

Element
Steps props
NameTypeDescription
className?string

Extra classes on the list.

itemsreadonly StepsItem[]

The steps, in order.

label?string

Accessible name of the list.

style?CSSProperties

Inline styles on the list.

ui/src/components/Steps.tsx:54

Interfaces#

StepsItemInterface#

One step of Steps.

TypeScript
interface StepsItem
StepsItem properties
NameTypeDefaultDescription
detail?ReactNode

A line under the title.

id?string

A stable key. Default: the index.

status?StepStatus'pending'

How the step went.

titleReactNode

What the step is.

ui/src/components/Steps.tsx:14

StepsPropsInterface#

Props for Steps.

TypeScript
interface StepsProps
StepsProps properties
NameTypeDescription
className?string

Extra classes on the list.

itemsreadonly StepsItem[]

The steps, in order.

label?string

Accessible name of the list.

style?CSSProperties

Inline styles on the list.

ui/src/components/Steps.tsx:29

Types#

StepStatusType#

How one step went.

TypeScript
type StepStatus = 'done' | 'active' | 'pending' | 'failed' | 'skipped'

ui/src/components/Steps.tsx:11