mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
454 B
454 B
order | title | ||||
---|---|---|---|---|---|
1 |
|
zh-CN
展示不同级别的标题。
en-US
Display title in different level.
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,
);