Default
Add a horizontal line between blocks of content with s-divider.
Add a horizontal line between blocks of content with s-divider.
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.
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.
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.
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.
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.
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.
Use an icon name for a compact visual marker. Icon-only dividers should include an aria-label describing the section break.
Use border-style and border-height to set line pattern and thickness independently of the label treatment.
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.
StringStringStringStringStringString