Separator
Above
Below
A thin visual divider between content or groups of controls.
Import
Section titled “Import”<script> import Separator from "@invisible-ui/svelte/Separator.svelte";</script><script setup> import { Separator } from "@invisible-ui/vue";</script>import { Separator } from "@invisible-ui/react";<script type="module"> import "@invisible-ui/elements/define";</script>
<ds-separator></ds-separator>| Prop | Type | Default | Description |
|---|---|---|---|
orientation | "horizontal" | "vertical" | "horizontal" | Divider direction. |
decorative | boolean | false | Hide from assistive tech (purely visual). |
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | SeparatorOrientation | "horizontal" | |
decorative | boolean | false | Hide from assistive tech (purely visual). |
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | "horizontal" | "vertical" | "horizontal" | Layout axis of the line. |
decorative | boolean | false | Hide from assistive tech (purely visual). |
| Attribute | Reactive | Description |
|---|---|---|
orientation | yes | horizontal or vertical |
decorative | yes |
Reactive attributes re-render the element when they change after the first render.
Accessibility
Section titled “Accessibility”- Semantic by default:
role="separator"witharia-orientation. - Set
decorativewhen it carries no meaning so it is hidden from assistive tech.
Example
Section titled “Example”<Separator orientation="vertical" decorative /><ds-separator orientation="vertical" decorative></ds-separator>In React:
<Separator orientation="vertical" decorative />Themeable via --ds-separator-* (falling back to --ds-components-general-border-default).