Skip to content

Separator

Visual separator line.

Radix Primitives

An open-source UI component library.

Blog
Docs
Source

Installation

bash
npx @galaxy-stack/nebula-cli@latest add separator
bash
pnpm dlx @galaxy-stack/nebula-cli@latest add separator
bash
yarn dlx @galaxy-stack/nebula-cli@latest add separator
bash
bunx @galaxy-stack/nebula-cli@latest add separator
bash
# If you have installed galaxy-design globally
galaxy-design add separator

API Reference

Props

PropTypeDefaultDescriptionFrameworks
orientation'horizontal' | 'vertical''horizontal'Separator orientationAll
decorativebooleantrueWhether separator is decorative onlyAll
asChildbooleanfalseRender as child elementReact, Vue, Angular
classNamestring''CSS class namesReact, React Native
classstring''CSS class namesVue, Angular, Flutter

Usage

Basic Example

vue
<Separator />
<Separator orientation="vertical" />

Accessibility

  • Keyboard Navigation: [TODO]
  • Screen Reader: [TODO]
  • Focus Management: [TODO]
  • WCAG Compliance: WCAG 2.1 Level AA compliant

Author

Bùi Trọng Hiếu (kevinbui)

License

MIT © 2025 Bùi Trọng Hiếu (kevinbui)

Released under the MIT License.