Display
Separator
A thin rule that divides content, horizontally or vertically, with an optional label in the middle.
Profile
Billing
Security
Installation #
With the Nuxt module, every component is auto-imported — there is nothing to add. In a plain Vue project, import what you use:
Copy
import { JSeparator } from '@juxtui/ui'Usage #
Copy
<JSeparator />
<JSeparator label="or" />
<JSeparator orientation="vertical" />Decorative by default (role="none") since most separators are purely visual. Set decorative to false when the separator divides meaningful groups and should be announced.
Variants & examples #
Vertical#
Divides items in a row, e.g. a toolbar or inline action list.
EditDuplicateDelete
With a label#
Pass label, or use the default slot for richer content, e.g. between two sign-in options.
or
API #
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| orientation | 'horizontal' | 'vertical' | 'horizontal' | Direction of the rule. |
| label | string | — | Text in the middle of a horizontal separator, e.g. "or". The default slot overrides it. |
| decorative | boolean | true | Purely visual (the default). Set to false when the separator divides meaningful groups and should be announced. |
Slots
| Slot | Props | Description |
|---|---|---|
| default | — | Custom label content, replacing label. |
Accessibility #
- By default the rule is
role="none"and invisible to assistive technology, since it’s decorative. - With
decorativeset tofalse, it becomesrole="separator"witharia-orientation.