Separator
Divide sections visually. Structure complex UIs. Create hierarchy.
NachUI
An open-source UI component library.
DocsComponentsBlog
Installation
Copy and paste the following code into your project.
Update the import paths to match your project structure.
Anatomy
Variants
Default
Horizontal and vertical separators.
NachUI
An open-source UI component library.
DocsComponentsBlog
With Label
Separator with centered inline text.
Sign in to Acme Studio
Use the account your team invited.
or continue with
Single sign on is available on the Team plan.
API Reference
Separator
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | "horizontal" | "vertical" | "horizontal" | The direction of the separator. |
decorative | boolean | true | If true, uses role="none" for accessibility. |
label | string | โ | Optional text displayed within the separator. When decorative is false it also becomes the accessible name. |
className | string | โ | Additional CSS class names. |
Found something to improve?
Notice a bug, typo, or missing detail on this page? Help us make the documentation better by opening a GitHub issue.