跳至內容
Fumadocs

步驟

在您的文件中加入步驟

Buy Coffee

Some text here

Go to Office Some text here

Some text here

Have a meeting Some text here

Some text here

Install to your codebase

Easier customization & control.

npx @fumadocs/cli@latest add steps

使用方式

請將步驟放入 Steps 容器中。

content.mdx
import { Step, Steps } from 'fumadocs-ui/components/steps';

<Steps>
<Step>

### Hello World

</Step>

<Step>

### Hello World

</Step>
</Steps>

不使用匯入

您可以直接使用 Tailwind CSS 工具類別,不需要另外匯入。

<div className="fd-steps">
  <div className="fd-step" />
</div>

它也支援透過任意變體 (arbitrary variants) ,只為標題套用步驟樣式。

<div className='fd-steps [&_h3]:fd-step'>

### Hello World

</div>

Hello World

未使用 <Step /> 元件即已渲染。

How is this guide?

最後更新於