mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 23:00:20 +08:00
6776bb8916
* 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
38 lines
873 B
Markdown
38 lines
873 B
Markdown
---
|
|
order: 0
|
|
title:
|
|
zh-CN: 水平分割线
|
|
en-US: Horizontal
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
默认为水平分割线,可在中间加入文字。
|
|
|
|
## en-US
|
|
|
|
Divider is `horizontal` by default. You can add text within Divider.
|
|
|
|
```jsx
|
|
import { Divider } from 'antd';
|
|
|
|
export default () => (
|
|
<>
|
|
<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 />
|
|
<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 dashed />
|
|
<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>
|
|
</>
|
|
);
|
|
```
|