Files

83 lines
2.6 KiB
Plaintext

---
title: "Steps"
description: "Create numbered step-by-step procedures with the steps component to guide users through sequential tasks, tutorials, and setup workflows."
keywords: ["sequence", "numbered steps", "procedures", "tutorial steps"]
boost: 3
---
import IconsOptional from "/snippets/icons-optional.mdx";
Use steps to display a series of sequential actions or events. You can add as many steps as needed.
<Steps>
<Step title="First Step">
These are instructions or content that only pertain to the first step.
</Step>
<Step title="Second Step">
These are instructions or content that only pertain to the second step.
</Step>
<Step title="Third Step">
These are instructions or content that only pertain to the third step.
</Step>
</Steps>
```mdx Steps example
<Steps>
<Step title="First Step">
These are instructions or content that only pertain to the first step.
</Step>
<Step title="Second Step">
These are instructions or content that only pertain to the second step.
</Step>
<Step title="Third Step">
These are instructions or content that only pertain to the third step.
</Step>
</Steps>
```
## Steps properties
<ResponseField name="children" type="ReactElement<StepProps>[]" required>
A list of `Step` components.
</ResponseField>
<ResponseField name="titleSize" type="string" default="p">
The size of the step titles. One of `p`, `h2`, `h3`, and `h4`.
</ResponseField>
<ResponseField name="className" type="string">
Additional CSS classes to apply to the steps container.
</ResponseField>
## Individual step properties
<ResponseField name="title" type="string" required>
The title is the primary text for the step and shows up next to the indicator. Supports inline Markdown formatting, such as `**bold**`, `_italic_`, and `` `code` ``.
</ResponseField>
<ResponseField name="children" type="string | ReactNode">
The content of a step either as plain text or components.
</ResponseField>
<IconsOptional />
<ResponseField name="stepNumber" type="number">
The number of the step.
</ResponseField>
<ResponseField name="titleSize" type="string" default="p">
The size of the step titles. One of `p`, `h2`, `h3`, and `h4`.
</ResponseField>
<ResponseField name="id" type="string">
A custom ID for the step, used for anchor linking and table of contents navigation.
</ResponseField>
<ResponseField name="noAnchor" type="boolean" default="false">
Whether to hide the anchor link for the step.
</ResponseField>
<ResponseField name="className" type="string">
Additional CSS classes to apply to the step.
</ResponseField>