ant-design/components/divider/demo/customize-style.md
偏右 1dab17eef0
feat: 💄 Divider support plain for lighter style (#23405)
* 💄 Divider support `asHeading` for lighter style

*  fix demo snapshot

* docs: 📖 Divider asHeading documentation

* fix tsd

*  fix demo snapshot

* asHeading to plain

*  fix demo snapshot

* fix css
2020-04-21 14:16:33 +08:00

581 B

order title debug
9999
zh-CN en-US
样式自定义 Style Customization
true

zh-CN

测试一些 style 修改样式的行为。

en-US

Use style to change default style.

import { Divider } from 'antd';

ReactDOM.render(
  <>
    <Divider style={{ height: 2, backgroundColor: '#7cb305' }} />
    <Divider style={{ borderColor: '#7cb305' }} dashed />
    <Divider type="vertical" style={{ height: 60, backgroundColor: '#7cb305' }} />
    <Divider type="vertical" style={{ height: 60, borderColor: '#7cb305' }} dashed />
  </>,
  mountNode,
);