Back to components
ComponentsText line divider
Displays a horizontal line with optional centered text. Ideal for visually separating sections while adding context or labels.
Divider
TextLineDivider
Component
Text
Props
| Props | Default | Type |
|---|---|---|
text | 'Text' | string |
styleType | DividerStyle.NEUTRAL | DividerStyle |
size | DividerSize.XS | DividerSize |
align | Align.CENTER | Align |
Usage
text
Sets the text of the divider.
<template>
<Divider text="Example text" />
</template>
styleType
Sets the style of the divider. Uses the DividerStyle enum.
<template>
<Divider :styleType="DividerStyle.PRIMARY_BRAND" />
</template>
Options
| Value | Description |
|---|---|
DividerStyle.NEUTRAL | The text has a neutral color. |
DividerStyle.PRIMARY_BRAND | The text has a primary-brand color. |
DividerStyle.SECONDARY_BRAND | The text has a secondary-brand color. |
size
Sets the size of the divider. Uses the DividerSize enum.
<template>
<Divider :size="DividerSize.SM" />
</template>
Options
| Value | Description |
|---|---|
DividerSize.XS | Uses a small text size. |
DividerSize.SM | Uses a medium text size. |
align
Sets the alignment of the divider. Uses the Align enum.
<template>
<Divider :align="Align.LEFT" />
</template>
Options
| Value | Description |
|---|---|
Align.LEFT | Displays the text aligned to the left with a right line divider. |
Align.CENTER | Displays the text aligned to the center with line dividers at both sides. |