ant-design/components/divider/demo/horizontal.md
偏右 3b59a03c00 New component divider (#7261)
* Add Divider

* use Divider in table demos

* update demo instruction

* upgrade snapshots
2017-08-19 12:39:11 +08:00

846 B

order title
0
zh-CN en-US
水平分割线 Horizontal

zh-CN

默认为水平分割线,可在中间加入文字。

en-US

Divider default type is horizontal. Support inner text inside Divider.

import { Divider } from 'antd';

ReactDOM.render(
  <div>
    <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>With Text</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>
  </div>
, mountNode);