Skip to main content

Use cases

  • Content separation: Separate distinct content sections within forms, lists, or panels.
  • Visual breaks: Create breaks between groups of related actions or controls.
  • Information boundaries: Establish clear boundaries between different types of information.
  • Hierarchy: Improve content hierarchy by dividing complex interfaces into digestible sections.

Anchor to example-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 with a divider

<s-divider />

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.

  • 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?