Separator
Separate adjacent sections, rows, or inline items with rules.
Project resources
Explore the latest updates.
OverviewActivityFiles
Recommended API
| Property or element | Type | Example initial value | Description |
|---|---|---|---|
<hr> | Element | Horizontal | Mark a thematic break between sections. |
aria-orientation | ARIA token | vertical on inline separators | Describe the direction of the inline rule. |
States
| State | Trigger | Result |
|---|---|---|
static | Render the separator between related items. | The rule distinguishes the groups at a glance. |
Svelte implementation guidance
Separate content horizontally or vertically; decorative separators should be hidden from assistive technology.
Use semantic HTML and preserve keyboard access. Adapt the example to the project conventions.
CSS variables
| Variable | Type | Default | Description |
|---|---|---|---|
--q-text | color | #28302a | Main text and foreground color. |
--q-muted | color | #70776f | Color for secondary text. |
--q-font-size | length | 13px | Base size for the component text. |
--q-border | color | #dce0d8 | Color for outlines and dividers. |
--q-gap | length | calc(var(--q-space) * 2) | Space between items, based on the spacing unit. |
--q-space | length | 4px | Base unit for gaps and padding. |