Divider
Place a horizontal or vertical divider between content areas.
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
insetand thickness in pixels withthickness.coloraccepts a CSS color and defaults to the theme.
Examples
#Feature examples
#Choose a feature from 2 topics. Explore property settings, method calls, event results, and slot layouts through live examples and code.
No matching features.
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 / Property | Type | Default | Description |
|---|---|---|---|
'horizontal' | 'vertical' | 'horizontal' | Horizontal or vertical divider. | |
boolean | false | Add space at both ends of the divider. | |
number | 1 | Divider thickness in pixels. | |
string | '' | Color applied to the component. Check the type for supported values. |