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.
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.
Related
4 of 16 other atoms, same role and ready ones first.
- AvatarA visual representation of a user, team, or entity.Ready
- BadgeA small label used to highlight status, category, or count.Ready
- ChipA compact label for a category, filter, or selected value.Ready
- CommentA single message in a discussion, with author, time, and text.Ready
Status reflects the component tracker snapshot of 29 October 2026.