2021-10-22 19:32:39 +08:00
|
|
|
---
|
2021-10-25 15:21:08 +08:00
|
|
|
title: Divider
|
2021-10-22 19:32:39 +08:00
|
|
|
lang: en-US
|
|
|
|
---
|
|
|
|
|
2021-09-17 00:18:50 +08:00
|
|
|
# Divider
|
|
|
|
|
|
|
|
The dividing line that separates the content.
|
|
|
|
|
|
|
|
## Basic usage
|
|
|
|
|
|
|
|
Divide the text of different paragraphs.
|
|
|
|
|
|
|
|
:::demo
|
|
|
|
|
|
|
|
divider/basic-usage
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
|
|
|
## Custom content
|
|
|
|
|
|
|
|
You can customize the content on the divider line.
|
|
|
|
|
|
|
|
:::demo
|
|
|
|
|
|
|
|
divider/custom-content
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
2021-12-09 20:41:38 +08:00
|
|
|
## dashed line
|
|
|
|
|
|
|
|
You can set the style of divider.
|
|
|
|
|
|
|
|
:::demo
|
|
|
|
|
|
|
|
divider/line-dashed
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
2021-09-17 00:18:50 +08:00
|
|
|
## Vertical divider
|
|
|
|
|
|
|
|
:::demo
|
|
|
|
|
|
|
|
divider/vertical-divider
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
|
|
|
## Divider Attributes
|
|
|
|
|
2022-04-29 18:03:54 +08:00
|
|
|
| Attribute | Description | Type | Accepted Values | Default |
|
|
|
|
| ---------------- | ---------------------------------------------------------- | ------ | --------------------------------------------------------------------------------- | ---------- |
|
|
|
|
| direction | Set divider's direction | string | horizontal / vertical | horizontal |
|
|
|
|
| border-style | Set the style of divider | string | [CSS/border-style](https://developer.mozilla.org/zh-CN/docs/Web/CSS/border-style) | solid |
|
|
|
|
| content-position | the position of the customized content on the divider line | string | left / right / center | center |
|
|
|
|
|
|
|
|
## Slots
|
|
|
|
|
|
|
|
| Name | Description |
|
|
|
|
| ---- | -------------------------------------- |
|
|
|
|
| — | customized content on the divider line |
|