> ## Documentation Index
> Fetch the complete documentation index at: https://wiki.another-horizon.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# 步骤

> 创建带编号的分步流程。

使用步骤来展示一系列按顺序进行的操作或事件。你可以根据需要添加任意多的步骤。

<Steps>
  <Step title="第一步">
    以下仅适用于第一步的说明或内容。
  </Step>

  <Step title="第二步">
    以下仅适用于第二步的说明或内容。
  </Step>

  <Step title="第三步">
    以下仅适用于第三步的说明或内容。
  </Step>
</Steps>

```mdx Steps example theme={null}
<Steps>
  <Step title="第一步">
    这些是仅适用于第一步的说明或内容。
  </Step>
  <Step title="第二步">
    这些是仅适用于第二步的说明或内容。
  </Step>
  <Step title="第三步">
    这些是仅适用于第三步的说明或内容。
  </Step>
</Steps>
```

<div id="steps-properties">
  ## Steps 属性
</div>

<ResponseField name="children" type="ReactElement<StepProps>[]" required>
  `Step` 组件列表。
</ResponseField>

<ResponseField name="titleSize" type="string" default="p">
  步骤标题的大小。可选值：`p`、`h2`、`h3`。
</ResponseField>

<div id="individual-step-properties">
  ## 单个步骤属性
</div>

<ResponseField name="children" type="string | ReactNode" required>
  步骤的内容，可以是纯文本或组件。
</ResponseField>

<ResponseField name="icon" type="string">
  要显示的 icon。

  选项：

  * [Font Awesome icon](https://fontawesome.com/icons) 名称
  * [Lucide icon](https://lucide.dev/icons) 名称
  * 用花括号包裹的 JSX 兼容 SVG 代码
  * 指向外部托管 icon 的 URL
  * 项目中 icon 文件的路径

  针对自定义 SVG icon：

  1. 使用 [SVGR 转换器](https://react-svgr.com/playground/)将你的 SVG 转换为 JSX。
  2. 将 SVG 代码粘贴到 SVG 输入框。
  3. 从 JSX 输出框中复制完整的 `<svg>...</svg>` 元素。
  4. 用花括号包裹 JSX 兼容的 SVG 代码：`icon={<svg ...> ... </svg>}`。
  5. 按需调整 `height` 和 `width`。
</ResponseField>

<ResponseField name="iconType" type="string">
  [Font Awesome](https://fontawesome.com/icons) icon 的样式。仅在使用 Font Awesome icon 时生效。

  选项：`regular`、`solid`、`light`、`thin`、`sharp-solid`、`duotone`、`brands`。
</ResponseField>

<ResponseField name="title" type="string">
  标题是该步骤的主要文本，显示在指示器旁边。
</ResponseField>

<ResponseField name="stepNumber" type="number">
  步骤编号。
</ResponseField>

<ResponseField name="titleSize" type="string" default="p">
  步骤标题的字号。可选值为 `p`、`h2` 和 `h3`。
</ResponseField>
