Stepper
Show and navigate ordered workflow steps.
Usage · TSX
<Stepper
label="Setup"
value={workflowStep}
onValueChange={setWorkflowStep}
steps={[
{ id: 'details', label: 'Details' },
{ id: 'review', label: 'Review' },
{ id: 'finish', label: 'Finish' },
]}
/>Review .
Workspace ready
Usage · TSX
<Stepper
label="Workspace setup"
orientation="vertical"
linear
id="workspace-setup"
previousLabel="Back"
nextLabel="Next"
isStepValid={(index) =>
index !== 0 || workspaceName.trim().length > 0
}
onStepInvalid={() => setSetupMessage('Enter a workspace name.')}
onStepChange={() => setSetupMessage('')}
completedContent={<p>Workspace ready</p>}
steps={[
{
id: 'name',
label: 'Name',
description: 'Workspace details',
content: (
<div>
<TextInput
aria-label="Workspace name"
value={workspaceName}
onInput={(event) =>
setWorkspaceName(event.currentTarget.value)
}
/>
<p aria-live="polite">{setupMessage}</p>
</div>
),
},
{
id: 'confirm',
label: 'Confirm',
content: <p>Review {workspaceName}.</p>,
},
]}
/>Usage · TSX
<Stepper
label="Review stages"
orientation="vertical"
defaultStep={0}
steps={[
{ id: 'draft', label: 'Draft' },
{ id: 'disabled', label: 'Unavailable', disabled: true },
{ id: 'proof', label: 'Proofread' },
]}
/>Usage · TSX
<Stepper
label="Project launch checklist"
id="launch-checklist"
layout="accordion"
defaultStep={1}
nextLabel="Done, next step"
completedContent={<p>Launch checklist complete</p>}
steps={[
{
id: 'brief',
label: 'Set the project brief',
description: '5 min',
content: (
<p>Agree on the scope, owners, and success criteria.</p>
),
},
{
id: 'review',
label: 'Review the launch plan',
description: '10 min',
content: (
<>
<p>
Confirm the launch date and make sure each task has an
owner.
</p>
<p>
<strong>Have ready:</strong> The project brief and
milestone dates.
</p>
</>
),
},
{
id: 'invite',
label: 'Invite collaborators',
description: '5 min',
content: (
<p>
Share the workspace with the launch team and confirm access.
</p>
),
},
]}
/>Usage · TSX
<Stepper
label="إعداد المشروع"
dir="rtl"
orientation="horizontal"
defaultStep={1}
steps={[
{ id: 'details', label: 'التفاصيل' },
{ id: 'review', label: 'المراجعة' },
{ id: 'finish', label: 'إنهاء' },
]}
/>API reference
Explore the complete contracts and inspect complex types.