mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
6c53a28e3a
* Document className and Tailwind arbitrary value support All built-in components now accept a className prop (mint#10540), and dynamic Tailwind utilities work in className on MDX components (mint#6737). Two pages stated the opposite. - Correct the claims that Tailwind arbitrary values are unsupported in customize/custom-scripts and guides/custom-layouts - Add className and arbitrary value guidance to the Tailwind section of custom-scripts, including the runtime-class limitation and the Tab content-panel caveat - Add a Style components section to the components overview - Add className property rows to every component reference page that supports it, and note the three components that do not - Document inline Markdown support in component title props - Correct the callouts page, which said typed callouts accept only children - Replace inline style resizing with Tailwind classes in image embeds - Add a help center article for Tailwind classes not applying in the editor's live preview, and note the limitation in custom-layouts - Point skill.md at className before custom.css - Accept className, keyframes, and unstyled in the Vale vocabulary Resolves DOC-316, DOC-317 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * Apply batched suggestions from code review Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> * Apply batched suggestions from code review Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
83 lines
2.6 KiB
Plaintext
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>
|