You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
453 B
31 lines
453 B
6 years ago
|
---
|
||
|
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;
|
||
|
|
||
|
ReactDOM.render(
|
||
|
<div>
|
||
|
<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>
|
||
|
</div>,
|
||
|
mountNode
|
||
|
);
|
||
|
```
|