Back to components
Components

Text line divider

Displays a horizontal line with optional centered text. Ideal for visually separating sections while adding context or labels.

Component


Text

Props

Props Default Type
text'Text'string
styleTypeDividerStyle.NEUTRALDividerStyle
sizeDividerSize.XSDividerSize
alignAlign.CENTERAlign

Usage

text

Sets the text of the divider.

 <template>
    <Divider text="Example text" />
</template>
 
  • Type: 'Text'
  • Default: string

styleType

Sets the style of the divider. Uses the DividerStyle enum.

 <template>
    <Divider :styleType="DividerStyle.PRIMARY_BRAND" />
</template>
 
  • Type: DividerStyle
  • Default: DividerStyle.NEUTRAL

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>
 
  • Type: DividerSize
  • Default: DividerSize.XS

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>
 
  • Type: Align
  • Default: Align.CENTER

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.