
Company News
Socket Joins the OpenJS Foundation
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.
@spark-web/vertical-stepper
Advanced tools
--- title: Vertical Stepper storybookPath: data-display-vertical-stepper isExperimentalPackage: true ---
Vertical stepper display progress through a sequence of logical and numbered steps.
const [activeIndex, setActiveIndex] = React.useState(2);
return (
<Box padding="large">
<VerticalStepper activeIndex={activeIndex}>
<Step>
<Step.Heading title="Step 1" />
<Step.Content>
<Stack gap="medium">
<Text>
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text
ever since the 1500s, when an unknown printer took a galley of
type and scrambled it to make a type specimen book. It has
survived not only five centuries, but also the leap into
electronic typesetting, remaining essentially unchanged. It was
popularised in the 1960s with the release of Letraset sheets
containing Lorem Ipsum passages, and more recently with desktop
publishing software like Aldus PageMaker including versions of
Lorem Ipsum.
</Text>
<Button
tone="primary"
onClick={() => {
setActiveIndex(activeIndex + 1);
}}
>
Next
</Button>
</Stack>
</Step.Content>
<Step.CompletedContent>
<Text>Success 🎉!</Text>
</Step.CompletedContent>
</Step>
<Step>
<Step.Heading
title="Step 2"
renderActionButton={({ isCompleted, stepIndex }) =>
isCompleted && (
<Button
type="button"
tone="info"
onClick={() => {
setActiveIndex(stepIndex);
}}
size="medium"
>
<PencilAltIcon size="xxsmall" />
Edit
</Button>
)
}
/>
<Step.Content
render={({ stepIndex }) => (
<Stack gap="small">
<Text>Content number {stepIndex + 1}</Text>
<Button
tone="secondary"
onClick={() => {
setActiveIndex(stepIndex - 1);
}}
>
Back
</Button>
<Button
tone="primary"
onClick={() => {
setActiveIndex(stepIndex + 1);
}}
>
Next
</Button>
</Stack>
)}
/>
<Step.CompletedContent
render={({ stepIndex }) => (
<Text>Completed Step {stepIndex + 1}!! 🎉</Text>
)}
/>
</Step>
<Step>
<Step.Heading title="Step 3" />
<Step.Description>
<Text size="small" tone="muted">
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text
ever since the 1500s, when an unknown printer took a galley of type
and scrambled it to make a type specimen book.
</Text>
</Step.Description>
<Step.Content>
<Stack gap="medium">
<Text>
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text
ever since the 1500s, when an unknown printer took a galley of
type and scrambled it to make a type specimen book. It has
survived not only five centuries, but also the leap into
electronic typesetting, remaining essentially unchanged. It was
popularised in the 1960s with the release of Letraset sheets
containing Lorem Ipsum passages, and more recently with desktop
publishing software like Aldus PageMaker including versions of
Lorem Ipsum.
</Text>
<Button
tone="secondary"
onClick={() => {
setActiveIndex(activeIndex - 1);
}}
>
Back
</Button>
</Stack>
</Step.Content>
</Step>
</VerticalStepper>
</Box>
);
FAQs
--- title: Vertical Stepper storybookPath: data-display-vertical-stepper isExperimentalPackage: true ---
The npm package @spark-web/vertical-stepper receives a total of 354 weekly downloads. As such, @spark-web/vertical-stepper popularity was classified as not popular.
We found that @spark-web/vertical-stepper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.