2017-08-19 12:39:11 +08:00
|
|
|
---
|
|
|
|
category: Components
|
2020-05-08 10:34:50 +08:00
|
|
|
type: Layout
|
2017-08-19 12:39:11 +08:00
|
|
|
title: Divider
|
2020-05-31 11:48:34 +08:00
|
|
|
cover: https://gw.alipayobjects.com/zos/alicdn/5swjECahe/Divider.svg
|
2017-08-19 12:39:11 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
A divider line separates different content.
|
|
|
|
|
|
|
|
## When To Use
|
|
|
|
|
|
|
|
- Divide sections of article.
|
|
|
|
- Divide inline text and links such as the operation column of table.
|
|
|
|
|
|
|
|
## API
|
|
|
|
|
2019-07-11 14:14:33 +08:00
|
|
|
| Property | Description | Type | Default | Version |
|
|
|
|
| --- | --- | --- | --- | --- |
|
2020-06-30 09:01:49 +08:00
|
|
|
| className | The className of container | string | - | |
|
|
|
|
| dashed | Whether line is dashed | boolean | false | |
|
|
|
|
| orientation | The position of title inside divider | `left` \| `right` \| `center` | `center` | |
|
2020-08-14 10:58:58 +08:00
|
|
|
| plain | Divider text show as plain style | boolean | true | 4.2.0 |
|
2020-06-30 09:01:49 +08:00
|
|
|
| style | The style object of container | CSSProperties | - | |
|
|
|
|
| type | The direction type of divider | `horizontal` \| `vertical` | `horizontal` | |
|