Divider

Separate content with a quiet line, an integrated label, or an optional accent treatment.

Divider

Default

Add a horizontal line between blocks of content with s-divider.

Vertical

Set direction="vertical" to separate inline text, links, or actions. Its height follows the current font size; text and icon content are not rendered in vertical mode.

Text

Place a short label inside the divider. The default plain treatment leaves the label transparent and gives the line a deliberate gap on each side.

Text Position

Use position to move a short label to the start, quarter, center, three-quarter, or end position. The line remains separate from the label at every position.

Variant

Choose plain for a quiet section label, soft for a low-contrast tinted capsule, or solid for a compact accent marker. The line layout and label position remain the same.

Color

Use a theme color or CSS color as the accent. The line stays muted while the label keeps readable contrast; omit color for the neutral default.

Background

Set background only when the label needs a custom surface. It retains a rounded, compact shape. Opaque HEX/RGB/HSL colors choose black or white text by contrast; use label-color to override that choice or to pair with other CSS colors. Named dark surfaces receive light text automatically.

Icons

Use an icon name for a compact visual marker. Icon-only dividers should include an aria-label describing the section break.

Style

Use border-style and border-height to set line pattern and thickness independently of the label treatment.

Configurator

Combine direction, content, position, spacing, label treatment, accent, custom surface, line style, and thickness. Vertical dividers use only the line settings; horizontal dividers can carry text or an icon.

API

PROPS

Property
Type
Values
Description
default
Example
More
direction
String
horizontalvertical
Divider direction; vertical is intended for inline content.
horizontal
position
String
leftleft-centercenterright-centerright
Label position along a horizontal divider.
center
variant
String
plainsoftsolid
Label treatment; plain has no background, soft uses a tint, and solid uses the accent color.
plain
color
String
neutralprimarysuccesswarningdangerdarkRGBHEX
Accent for the line and label; the line is softened to keep the label readable.
neutral
background
String
primary | success | danger | warn | warning | dark | text | light | secondary | RGB | RGBA | HEX | HSL | HSLA | CSS color
Optional exact label surface color; opaque HEX/RGB/HSL colors choose black or white text automatically. Use label-color for other CSS colors.
transparent
label-color
String
primary | success | danger | warn | warning | dark | text | light | secondary | RGB | RGBA | HEX | HSL | HSLA | CSS color
Explicit label foreground color; overrides the automatic color used by variant and background.
—
gap
String
CSS size
Space between horizontal line segments and their label.
12px
icon
String
Icon name
Show an icon instead of slot text; give icon-only dividers an accessible name.
—
border-style
String
soliddasheddotted
CSS border style for the line.
solid
border-height
String
CSS size
Line thickness in both horizontal and vertical modes.
1px
Last Updated: 2026-10-28, 06:17:56 UTC
Copied