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.

Divider

A thin line used to separate content into distinct sections.

Status
ReadyBuild day 9 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 { Divider } from "@/ui";

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

Variants and states

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

size smline, label, icon
size mdline, label, icon

Pastes as editable layers. Shadows are not exported.

Props

label
string · default none
Text in the middle, such as or.
icon
ReactNode · default none
An icon in the middle. Ignored when there is a label. Decorative.
size
"sm" | "md" · default "md"
Text size.

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.

🔧 Content
label, icon
Line is neither. Label is label. Icon is icon.
📐 Size
size
sm or md.
Label, Icon
label, icon
Same props.

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. The label is its accessible name and the text inside is hidden, so it is read once.

What you still need to do

  • For a plain line, use Separator. The design file notes that the two overlap and should be merged once the scope is decided.

When to use

Groups related content without adding a full container. Keep it sparing.

Do and don't

Do

  • Use consistent spacing above and below.
  • Use as a lighter alternative to a card border.

Don't

  • Overuse: too many dividers create visual noise.
  • Use as a replacement for proper spacing.

4 of 28 other molecules, same role and ready ones first.

See all components

Status reflects the component tracker snapshot of 29 October 2026.