# Divider
Used to separate content into multiple areas.
:::danger Please Note
The `hairline`, `dashed`, `content-position`, and `vertical` properties are newly supported in version 1.5.0. Before this version, only default slot text display and custom `color` were supported.
:::
## Basic Usage
By default, renders a horizontal dividing line.
```html
```
## Display Text
Use the default slot to insert content in the middle of the dividing line.
```html
Display Text
```
## Custom Render Content
Use the default slot to insert custom content in the middle of the dividing line.
```html
```
## Content Position
Specify the content position through `content-position`.
```html
Center
Left
Right
```
## Dashed Line
Add the `dashed` property to render the dividing line as a dashed line.
```html
Dashed Divider
```
## Custom Color
Set the `color` property.
```html
Custom Color
```
## Vertical Divider
Add the `vertical` property to render the dividing line as a vertical divider.
```html
Text
Text
Text
Text
Text
```
```css
.content {
padding: 12rpx 15px;
}
```
## Attributes
| Attribute | Description | Type | Options | Default | Version |
|-----------|-------------|------|----------|---------|----------|
| color | Custom color, supports all color writing formats | string | - | - | - |
| hairline | Whether to show border | boolean | - | true | 1.5.0 |
| dashed | Whether to show as dashed line | boolean | - | false | 1.5.0 |
| content-position | Content position | string | `left`/`center`/`right` | `center` | 1.5.0 |
| vertical | Whether to show as vertical divider | boolean | - | false | 1.5.0 |
## Slot
| Name | Description | Version |
|------|-------------|----------|
| default | Content, only effective when `vertical` is `false` | - |
## External Classes
| Class Name | Description | Version |
|------------|-------------|----------|
| custom-class | Root node style | - |