Skip to content

components/StepFrame

import { … } from 'zidane-ui'ui/src/components/StepFrame.tsx

Components#

StepActionsComponent#

The usual step footer: Back on the left, and Skip and Continue on the right. Continue has its ↵ keycap. A missing handler hides its button.

TypeScript
function StepActions(props: StepActionsProps): Element
Parameters
NameTypeDescription
propsStepActionsProps

Component props.

Element
StepActions props
NameTypeDescription
busy?boolean

Continue is working. It shows as pressed, and the user cannot press it again.

className?string

Extra classes on the root element.

continueDisabled?boolean

The user cannot press Continue yet, such as before a provider is ready.

continueLabel?ReactNode

Text of the Continue button. Defaults to the continue label.

note?ReactNode

Muted text before the buttons on the right, such as why Continue is off.

onBack?() => void

Goes to the previous step. Absent: no Back button.

onContinue?() => void

Moves on. Absent: no Continue button.

onSkip?() => void

Leaves this step's choices as they were and moves on. Absent: no Skip button.

skipLabel?ReactNode

Text of the Skip button. Defaults to the skip label.

style?CSSProperties

Inline styles on the root element, merged after the component's own.

ui/src/components/StepFrame.tsx:99

StepFrameComponent#

Renders a wizard step's page: its heading, its body, an optional side pane, and a footer.

TypeScript
function StepFrame(props: StepFrameProps): Element
Parameters
NameTypeDescription
propsStepFrameProps

Component props.

Element
StepFrame props
NameTypeDescription
aside?ReactNode

A side pane, such as a live preview: beside the body from 1024px wide, pinned 48px below the top of the scroller as the body scrolls, and under the body below that width.

children?ReactNode

The step's body.

className?string

Extra classes on the page.

eyebrow?ReactNode

Small label above the title, such as the step's name.

footer?ReactNode

The footer, usually StepActions.

lede?ReactNode

One sentence under the title.

style?CSSProperties

Inline styles on the root element, merged after the component's own.

titleReactNode

The step's question or heading.

ui/src/components/StepFrame.tsx:41

Interfaces#

StepActionsPropsInterface#

Props for StepActions.

TypeScript
interface StepActionsProps
StepActionsProps properties
NameTypeDescription
busy?boolean

Continue is working. It shows as pressed, and the user cannot press it again.

className?string

Extra classes on the root element.

continueDisabled?boolean

The user cannot press Continue yet, such as before a provider is ready.

continueLabel?ReactNode

Text of the Continue button. Defaults to the continue label.

note?ReactNode

Muted text before the buttons on the right, such as why Continue is off.

onBack?() => void

Goes to the previous step. Absent: no Back button.

onContinue?() => void

Moves on. Absent: no Continue button.

onSkip?() => void

Leaves this step's choices as they were and moves on. Absent: no Skip button.

skipLabel?ReactNode

Text of the Skip button. Defaults to the skip label.

style?CSSProperties

Inline styles on the root element, merged after the component's own.

ui/src/components/StepFrame.tsx:70

StepFramePropsInterface#

Props for StepFrame.

TypeScript
interface StepFrameProps
StepFrameProps properties
NameTypeDescription
aside?ReactNode

A side pane, such as a live preview: beside the body from 1024px wide, pinned 48px below the top of the scroller as the body scrolls, and under the body below that width.

children?ReactNode

The step's body.

className?string

Extra classes on the page.

eyebrow?ReactNode

Small label above the title, such as the step's name.

footer?ReactNode

The footer, usually StepActions.

lede?ReactNode

One sentence under the title.

style?CSSProperties

Inline styles on the root element, merged after the component's own.

titleReactNode

The step's question or heading.

ui/src/components/StepFrame.tsx:17