Ask Natuna

Ask about the design system

Hi, I am Natuna.

Ask me about the design system: components, tokens, statuses, and how to use them.

Natuna can be wrong. The docs are the source of truth.

Skip to content
  • IntroductionPage
  • Ask NatunaAsk about the design systemPage
  • FoundationColor, type, number, effectPage
  • Components overviewPage
  • ThemesLight and dark modePage
  • NamingProperty and page namesPage
  • Privacy statementPage
  • Text-safe stepsFirst AA and AAA step per color rampSection
  • AccessibilityWCAG 2.2 AAA rulesSection
  • Dark modeThemesSection
  • Using it todayFigma file and React codeSection
  • Component statusDesign status and In ReactSection

Arrow keys to move, Enter to open, Esc to close.

Separator

A small inline mark (dot or bar) between items on the same line.

Status
ReadyBuild day 3 of 21
Code
In React
Role
Display

Usage

This demo is live, and the code below it is the same code, imports included. The component lives in src/ui of this repository and is not published to npm yet.

Sign in with your email

Continue with your phone number

Pastes as editable layers. Shadows are not exported.

import { Separator } from "@/ui";

export default function SeparatorDemo() {
  return (
    <div>
      <p>Sign in with your email</p>
      <Separator label="or" />
      <p>Continue with your phone number</p>
    </div>
  );
}

Variants and states

Every specimen is the real component from src/ui, held in one state.

weight subtle
LeftRight
weight default
LeftRight
weight strong
LeftRight

Pastes as editable layers. Shadows are not exported.

Props

orientation
"horizontal" | "vertical" · default "horizontal"
Direction of the line. A vertical one stretches to the height of its flex parent.
weight
"subtle" | "default" | "strong" · default "default"
Subtle is the default line at 60%, strong is 2px.
label
string · default none
Text centered on a horizontal line, such as or. Ignored when vertical.
className
string · default ""
Extra classes.

Figma to code

Figma properties by their exact names from Naming, and the React prop that carries each one. The table covers the shared properties that bear on this component; the Figma file decides which of them its component exposes. None means there is no prop for it yet.

🧰 Type
orientation
horizontal or vertical.
💡 Style
weight
Named weight in code, because style is a reserved prop. subtle, default, or strong.
Show Label, Label
label
Pass label to show the text.

Accessibility

What the code in src/ui does today, and what it leaves to you.

Keyboard

  • Not focusable. Tab skips it.

Screen readers

  • Has role=separator with its orientation.
  • A labeled separator is read by its label, such as or. The text inside is aria-hidden so it is not read twice.

What you still need to do

  • Use it for a real change of topic. For pure spacing, use margin.

When to use

Splits metadata such as date, category, and author in a single row.

Do and don't

Do

  • Keep the mark lighter than the text it separates.
  • Hide it from screen readers.

Don't

  • Use it to split whole sections: use a divider.
  • Chain more than four items on one line.

4 of 16 other atoms, same role and ready ones first.

See all components

Status reflects the component tracker snapshot of 29 October 2026.