Components · Data Display · Divider
Back to Divider typesDivider
Use to visually separate sections of content with a horizontal rule, with an optional text label breaking the line - one Divider component, controlled by properties, not a one-off <hr> or border hack rebuilt per screen.
Properties
Divider has no hover/focus/disabled states - it is not interactive. Text label and Text alignment below only visibly apply to the Horizontal with text form; the other forms ignore them. Change them below to check every form and line style in the Live Preview.
Live Preview
All 3 forms compared side by side, each in 3 line styles - Solid, Dashed and Dotted. One matrix is rendered per selected Size, at the chosen Text label and Text alignment.
When to use
Any place content needs a clear, low-emphasis break - between sections, form groups, or inline items in a row.
Component Guide
Overview
Divider visually separates sections of content with a horizontal rule, with an optional text label breaking the line - a lightweight, low-emphasis break between related but distinct groups of content.
When to Use
- A section separator - marking a clear boundary between two content blocks.
- A form group boundary or an "Or" split between two actions - e.g. "Sign in with email" / "Or" / "Continue with Google".
- A separator between inline items - adjacent to a Breadcrumb, or between items in a row.
When Not to Use
- Spacing alone would already communicate the separation - don't add a visible line where whitespace is sufficient - overusing dividers adds visual clutter.
- A boundary that also needs to be interactive or collapsible - use Collapse instead of a plain static Divider.
- Separating truly unrelated content that shouldn't appear together at all - a Divider implies related-but-distinct groups; unrelated content belongs on separate pages or panels.
Best Practices
- Use a labeled Divider (with text) only when the label adds real information ("Or"), not as decoration.
- Keep its weight and color subtle - a Divider should recede, not compete with the content it separates.
Do and Don't
Do
Personal details
Billing details
Marks a real boundary between two distinct groups of fields, so the eye knows where one section ends.
Don't
First name
Last name
A divider between every single field turns a short form into a fence of lines, drowning out the one grouping boundary that would actually help.
Accessibility
- Purely decorative in most cases, so it's hidden from assistive technology rather than announced as content.
- When it also carries a semantic heading-like label, that label is exposed as real text, not baked into a background image.
- Never used as the sole way to convey a structural boundary that should really be a heading or landmark.
Related Components
Card, Collapse, Description.
{
"component": "Divider",
"category": "Data Display",
"summary": "Divider visually separates sections of content with a horizontal rule, with an optional text label breaking the line - a lightweight, low-emphasis break between related but distinct groups of content.",
"whenToUse": [
"A section separator - marking a clear boundary between two content blocks.",
"A form group boundary or an \"Or\" split between two actions - e.g. \"Sign in with email\" / \"Or\" / \"Continue with Google\".",
"A separator between inline items - adjacent to a Breadcrumb, or between items in a row."
],
"whenNotToUse": [
"Spacing alone would already communicate the separation - don't add a visible line where whitespace is sufficient - overusing dividers adds visual clutter.",
"A boundary that also needs to be interactive or collapsible - use Collapse instead of a plain static Divider.",
"Separating truly unrelated content that shouldn't appear together at all - a Divider implies related-but-distinct groups; unrelated content belongs on separate pages or panels."
],
"bestPractices": [
"Use a labeled Divider (with text) only when the label adds real information (\"Or\"), not as decoration.",
"Keep its weight and color subtle - a Divider should recede, not compete with the content it separates."
],
"doAndDont": {
"do": "Marks a real boundary between two distinct groups of fields, so the eye knows where one section ends.",
"dont": "A divider between every single field turns a short form into a fence of lines, drowning out the one grouping boundary that would actually help."
},
"accessibility": [
"Purely decorative in most cases, so it's hidden from assistive technology rather than announced as content.",
"When it also carries a semantic heading-like label, that label is exposed as real text, not baked into a background image.",
"Never used as the sole way to convey a structural boundary that should really be a heading or landmark."
],
"relatedComponents": [
"Card",
"Collapse",
"Description"
]
}