For AI agents: the complete documentation index is available at https://rspress.rs/zh/llms.txt, the full documentation bundle is available at https://rspress.rs/zh/llms-full.txt, and this page is available as Markdown at https://rspress.rs/zh/ui/components/steps.md.
close

Steps

Steps 将 Markdown 内容渲染为分步说明块。

用法

第一步

第一步的内容。

第二步

第二步的内容。

index.mdx
import { Steps } from '@rspress/core/theme';

<Steps>

### 第一步

第一步的内容。

### 第二步

> 第二步的内容。

</Steps>

在 <Steps> 中书写 h2 到 h6 级别的直属标题;每个标题会开启一个新的步骤,标题下的 Markdown 内容会作为该步骤的正文。