Skip to main content

Configure the following properties on the divider component.

Anchor to direction
direction
'inline' | 'block'
Default: 'inline'

Specify the direction of the divider. This uses logical properties.

string

A unique identifier for the element.


Anchor to Separate content sections with a dividerSeparate content sections with a divider

Separate content sections using a divider component. This example shows a basic horizontal divider.

Separate content sections with a divider

Separate content sections using a divider component. This example shows a basic horizontal divider.

Separate content sections with a divider

<s-divider />

  • Choose appropriate direction: Use inline (horizontal) for most content separation. Use block (vertical) for columns or sidebar boundaries.
  • Avoid overuse: Use dividers strategically. In dense interfaces, consider whitespace or typography hierarchy instead.

Was this page helpful?