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.
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.
Related
4 of 28 other molecules, same role and ready ones first.
- AccordionStacked sections that expand to reveal their content.Ready
- CardA container that groups related content and actions.Ready
- Empty StateCommunicates that there is no content to show, with a next step.Ready
- QR Code DisplayA scannable code with its amount, recipient, and expiry.Ready
Status reflects the component tracker snapshot of 29 October 2026.