ant-design/components/divider/demo/horizontal.md

39 lines
887 B
Markdown
Raw Normal View History

---
order: 0
title:
zh-CN: 水平分割线
en-US: Horizontal
---
## zh-CN
默认为水平分割线,可在中间加入文字。
## en-US
2019-04-20 02:37:12 +08:00
Divider is `horizontal` by default. You can add text within Divider.
2019-05-07 14:57:32 +08:00
```jsx
import { Divider } from 'antd';
ReactDOM.render(
<div>
2019-05-07 14:57:32 +08:00
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
probare, quae sunt a te dicta? Refert tamen, quo modo.
</p>
<Divider />
2019-05-07 14:57:32 +08:00
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
probare, quae sunt a te dicta? Refert tamen, quo modo.
</p>
2017-10-26 20:59:36 +08:00
<Divider dashed />
2019-05-07 14:57:32 +08:00
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
probare, quae sunt a te dicta? Refert tamen, quo modo.
</p>
2018-06-27 15:55:04 +08:00
</div>,
2019-05-07 14:57:32 +08:00
mountNode,
2018-11-28 15:00:03 +08:00
);
2019-05-07 14:57:32 +08:00
```