Divider

Divide text or section components with flexible color, icon, and layout options.

Divider

Default

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

Code copied

Text

Place text inside the divider to label a section break.

Code copied

Text Position

Control text alignment with the position prop: left, left-center, center, right-center, or right.

Code copied

Color

Change the color of the line and the text using theme colors, RGB, or HEX.

Code copied

Background

Highlight divider text with a custom background color.

Code copied

Icons

Use Material Icons inside the divider via the icon prop.

Code copied

Style

Switch line appearance with border-style (solid, dashed, dotted).

Code copied

API

PROPS

PropertyTypeValuesDescriptiondefaultExampleMore
positionStringleftleft-centercenterright-centerrightText/icon position along the line.center
colorStringprimarysuccessdangerwarningdarkRGBHEXLine and text color.rgba(0,0,0,.1)
backgroundStringprimarysuccessdangerwarningdarkRGBHEXBackground behind divider text.transparent
iconStringMaterial icon nameShow an icon instead of slot text.
border-styleStringsoliddasheddottedCSS border style for the line.solid
border-heightStringCSS sizeBorder width of the divider line.1px
No matching data
Last Updated: 2026-08-17, 08:33:54