Panel
Divider
A horizontal or vertical line between pieces of content, solid, dashed or dotted, with optional content set into it.
WAI-ARIA tested
Import
main.ts
import { Divider } from '@vitral/vue';Types
SolidDashedDotted
Content
Left
Center
Right
Vertical
or
API
Read from packages/vue/src/components/Divider/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| layout | 'horizontal' | 'vertical' | — |
| type | 'solid' | 'dashed' | 'dotted' | — |
| align | 'left' | 'center' | 'right' | 'top' | 'bottom' | Where the content sits along the line: `left`, `center` or `right` on a horizontal divider (`left` by default), `top`, `center` or `bottom` on a vertical one (`center` by default). |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Slots
| Name | Slot props | Description |
|---|---|---|
| default | — | Text or an icon set into the line. |