ant-design/components/divider/demo/customize-style.md
2022-05-21 22:14:15 +08:00

35 lines
707 B
Markdown

---
order: 9999
title:
zh-CN: 样式自定义
en-US: Style Customization
debug: true
---
## zh-CN
测试一些 `style` 修改样式的行为。
## en-US
Use `style` to change default style.
```tsx
import { Divider } from 'antd';
import React from 'react';
const App: React.FC = () => (
<>
<Divider style={{ borderWidth: 2, borderColor: '#7cb305' }} />
<Divider style={{ borderColor: '#7cb305' }} dashed />
<Divider style={{ borderColor: '#7cb305' }} dashed>
Text
</Divider>
<Divider type="vertical" style={{ height: 60, borderColor: '#7cb305' }} />
<Divider type="vertical" style={{ height: 60, borderColor: '#7cb305' }} dashed />
</>
);
export default App;
```