Skip to content

SeparatorPro

A thin line between groups: across or upright, a word in the middle, dashed, faded ends or inset.

oxyn add separator

Fixed the refresh-token race.

Now add rate limiting to the login route.

The code is part of Oxyn Pro

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.

Get Pro

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.

Terminal
oxyn add separator

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Labelled

A word in the middle.

Fixed the refresh-token race.

Now add rate limiting to the login route.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Plain

Decorative line.

Fixed the refresh-token race.

Now add rate limiting to the login route.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Dashed

Dashed.

Fixed the refresh-token race.

Now add rate limiting to the login route.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Vertical

Upright between tools.

Files
Edits
Runs
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

Separator

PropTypeDefaultDescription
verticalboolDefault::default()Vertical.
decorativebooltruePurely visual.
labelOption<String>Default::default()Label.
dashedboolDefault::default()Dashed.
fadeboolDefault::default()Faded ends.
insetf32Default::default()Inset px.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
—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 Separator from oxyn_dioxus and include PRIMITIVES_CSS plus the token stylesheet once.
  • A GPUI version exists: SeparatorEl in oxyn_gpui.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI