SeparatorPro
A thin line between groups: across or upright, a word in the middle, dashed, faded ends or inset.
oxyn add separatorFixed the refresh-token race.
Now add rate limiting to the login route.
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- A thin line between groups: across or upright, a word in the middle, dashed, faded ends or inset.
When not to use
- A small label for one control: use Tooltip instead.
- Actions and choices behind any trigger: use Dropdown Menu instead.
- The empty state of an AI app: use Starter prompts instead.
Installation
Separator is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add separatorUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Labelled
A word in the middle.
Fixed the refresh-token race.
Now add rate limiting to the login route.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Plain
Decorative line.
Fixed the refresh-token race.
Now add rate limiting to the login route.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Dashed
Dashed.
Fixed the refresh-token race.
Now add rate limiting to the login route.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Vertical
Upright between tools.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
Separator
| Prop | Type | Default | Description |
|---|---|---|---|
vertical | bool | Default::default() | Vertical. |
decorative | bool | true | Purely visual. |
label | Option<String> | Default::default() | Label. |
dashed | bool | Default::default() | Dashed. |
fade | bool | Default::default() | Faded ends. |
inset | f32 | Default::default() | Inset px. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| — | Not focusable |
Accessibility
- Decorative by default.
- A labelled separator is a real role=separator for screen readers.
Responsive behaviour
- Fills its container; inset keeps it off the edges.
Notes for AI
- Import
Separatorfromoxyn_dioxusand includePRIMITIVES_CSSplus the token stylesheet once. - A GPUI version exists:
SeparatorElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.