Separator
Separator draws a thin rule between groups of content. Use orientation="vertical" inside a flex row with a set height. Set decorative={false} when the rule marks a real boundary that screen readers should announce.
Installation
Run npx nxds-cli@latest init first if nxds isn’t set up in your app yet. See Install.
Usage
Examples
Vertical
Divide inline links with vertical rules inside a row of fixed height.
Props
Separator
Separator adds no props of its own; it accepts the props of the element or primitive it wraps.
Separator draws a thin rule between groups of content. Use orientation="vertical" inside a flex row with a set height. Set :decorative="false" when the rule marks a real boundary that screen readers should announce.
Installation
Install the following dependencies:
Copy and paste the following code into your project.
components/separator/Separator.vue components/separator/index.ts Keep each file at the path shown above it.
Paths are relative to
packages/vue/src/. Keep the same folders under your@/root, and the imports between files work without edits.
Usage
Examples
Vertical
Divide inline links with vertical rules inside a row of fixed height.
Props
Separator
Separator adds no props of its own; it accepts the props of the element or primitive it wraps.