mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 23:00:20 +08:00
34 lines
539 B
Markdown
34 lines
539 B
Markdown
---
|
|
order: 1
|
|
title:
|
|
zh-CN: 标题组件
|
|
en-US: Title Component
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
展示不同级别的标题。
|
|
|
|
## en-US
|
|
|
|
Display title in different level.
|
|
|
|
```tsx
|
|
import { Typography } from 'antd';
|
|
import React from 'react';
|
|
|
|
const { Title } = Typography;
|
|
|
|
const App: React.FC = () => (
|
|
<>
|
|
<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>
|
|
</>
|
|
);
|
|
|
|
export default App;
|
|
```
|