ant-design/components/typography/demo/title.md
MadCcc 6776bb8916
docs: demo support react18 (#34843)
* docs: update demo

* chore: add script

* test: fix demo test

* docs: convert demos

* chore: move script

* test: remove react-dom import

* chore: update deps

* docs: update riddle js

* test: fix image test

* docs: fix riddle demo
2022-04-03 23:27:45 +08:00

31 lines
484 B
Markdown

---
order: 1
title:
zh-CN: 标题组件
en-US: Title Component
---
## zh-CN
展示不同级别的标题。
## en-US
Display title in different level.
```jsx
import { Typography } from 'antd';
const { Title } = Typography;
export default () => (
<>
<Title>h1. Ant Design</Title>
<Title level={2}>h2. Ant Design</Title>
<Title level={3}>h3. Ant Design</Title>
<Title level={4}>h4. Ant Design</Title>
<Title level={5}>h5. Ant Design</Title>
</>
);
```