Skip to content
Zuno UI
Explore components
EXPLORE
Actions
Forms
Layout
Navigation
Data display
Feedback
Overlays
RESOURCES
Components/Separator

Separator

Structural separation that avoids unnecessary semantic roles.

Section A
Section B

Installation

Run it from the root of a project already set up with zunoui init.

npx zunoui@latest add separator

Dependencies

What add separator installs alongside the component. The CLI skips any you already have in a compatible version.

ZUNO registry

  • @zuno/utils

Examples

1 examples · 1 component
separator
Section A
Section B
Left
Right

Horizontal and vertical

Separates sections or inline items.

API reference

Forwards props and ref to the container element; it only adds composition utilities.

PropTypeDefault
orientation

Direction of the separator.

"horizontal" | "vertical""horizontal"
decorative

When semantic, it exposes role="separator".

booleantrue

Accessibility

Decorative by default (role="none"). Use decorative={false} when it separates meaningful groups.

In vertical orientation, give the container a height so the separator is visible.