---
name: element-plus-divider
description: Element Plus Divider component (el-divider) API documentation. Triggers when user wants to use, implement, or asks about el-divider or Divider component.
---

# Divider 组件 API

## Attributes

| Name             | Description                                                | Type                                                                                                                                        | Default    |
| ---------------- | ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
| direction        | Set divider's direction                                    | ^[enum]`'horizontal' \| 'vertical'`                                                                                                         | horizontal |
| border-style     | Set the style of divider                                   | ^[enum]`'none' \| 'solid' \| 'hidden' \| 'dashed' \| ...` [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 | ^[enum]`'left' \| 'right' \| 'center'`                                                                                                      | center     |

## Slots

| Name    | Description                            |
| ------- | -------------------------------------- |
| default | Customized content on the divider line |

## 参考

- 官方文档: https://element-plus.org/en-US/component/divider.html
