Divider

Place a horizontal or vertical divider between content areas.

Live preview
Interact with the component to see results here.
View code
HTML
<div style="display:grid;gap:16px;width:100%"><span>Project information</span>
  <sy-divider
    type="horizontal"
    thickness="1"
    color=""
  ></sy-divider><span>Members and permissions</span>
</div>

Usage guide

#

Use when content with different meanings needs a clear separation. Extra dividers are unnecessary when spacing is sufficient.

Horizontal division
The default direction separates content above and below.
Vertical division
Use type="vertical" and provide enough height in the parent area.
Line extent and thickness
Set end spacing with inset and thickness in pixels with thickness. color accepts a CSS color and defaults to the theme.

Feature examples

#

Choose a feature from 2 topics. Explore property settings, method calls, event results, and slot layouts through live examples and code.

Usage examples · Overview

Try the selected example. Topics with multiple configurations let you switch between detailed examples.

View code
HTML
Loading the example.

Property · Type

See how settings change appearance and behavior.

View code
HTML
Loading the example.

API reference

#

Hover over a name or focus it with the keyboard to see the code. On touch screens, tap the name.

<sy-divider>

Properties

Attribute / PropertyTypeDefaultDescription
'horizontal' | 'vertical''horizontal'Horizontal or vertical divider.
booleanfalseAdd space at both ends of the divider.
number1Divider thickness in pixels.
string''Color applied to the component. Check the type for supported values.