prmbr-image-mksaas/content/docs/mdx/heading.zh.mdx
javayhu fe04a2973e feat: add new documentation files for zh locale
- Introduced multiple new MDX files covering various topics including comparisons, customization, internationalization, manual installation, markdown usage, and component documentation.
- Enhanced the overall structure and organization of the documentation to improve user experience and accessibility.
- Added a meta JSON file to define the documentation structure and navigation.
- Implemented new layout files for different document types, improving the flexibility of the documentation framework.
2025-04-01 00:38:07 +08:00

26 lines
605 B
Plaintext

---
title: 标题
description: MDX 文档的标题组件
preview: heading
---
自动添加 `id` 属性的标题组件。
## 使用方法
将其添加到您的 MDX 组件中,从 `h1` 到 `h6`。
```mdx
import { Heading } from 'fumadocs-ui/components/heading';
<MDX
components={{
h1: (props) => <Heading as="h1" {...props} />,
h2: (props) => <Heading as="h2" {...props} />,
h3: (props) => <Heading as="h3" {...props} />,
h4: (props) => <Heading as="h4" {...props} />,
h5: (props) => <Heading as="h5" {...props} />,
h6: (props) => <Heading as="h6" {...props} />,
}}
/>
```