Components

Divider

Separate content with UiDivider — horizontal, labelled, or vertical.

UiDivider renders a plain <hr> by default. Pass text for a labelled divider or vertical for separating inline content within a flex row. All variants expose role="separator".

Add a horizontal divider

<template>
  <p>Section one</p>
  <UiDivider />
  <p>Section two</p>
</template>

Add a text label

<template>
  <UiDivider text="OR" />
</template>

Use a vertical divider

Place it inside a flex row to separate inline content, such as toolbar actions.

<template>
  <div class="d-flex align-items-center gap-2">
    <UiButton variant="text" text="Cut" />
    <UiDivider vertical />
    <UiButton variant="text" text="Copy" />
    <UiDivider vertical />
    <UiButton variant="text" text="Paste" />
  </div>
</template>

Inset a divider

Use inset to indent the divider, e.g. to align it past a leading icon in a list.

<template>
  <UiDivider inset />
</template>

Props

PropTypeDefaultDescription
textstring | null—Centered label rendered between two hairlines.
verticalbooleanfalseRenders a vertical divider for separating inline content.
insetbooleanfalseIndents the divider from the inline start.
customClassstring | string[] | Record<string, boolean> | null—Extra classes.
Plain dividers render an <hr>; labelled and vertical dividers render a <div role="separator"> (a vertical divider also sets aria-orientation="vertical").

CSS variables

Set these on :root, or on any wrapper to restyle only the dividers inside it.

:root {
  --cffy-divider-color: var(--cffy-outline-text-field);
  --cffy-divider-spacing: var(--cffy-space-24);
}
VariableDefaultControls
--cffy-divider-thickness / --cffy-divider-color1px / --cffy-outline-surfaceLine
--cffy-divider-spacing0.75remSpace around the line (block axis, or inline axis when vertical)
--cffy-divider-inset3remStart indent of inset dividers
--cffy-divider-text-gap0.75remSpace between a labelled divider's text and its lines
--cffy-divider-text-color / --cffy-divider-text-font-size--cffy-muted-a10 / --cffy-fs-2xsLabel text
Copyright © 2026