Overview
Line separator for content sections. 7 line styles, 6 colors, label, icon, inset and chat date variants.
Labeled dividers
A short label can clarify the relationship between the content groups on either side.
Use a divider only when spacing and headings are not enough to communicate a change in content grouping.
Anatomy
- Root container and spacing boundary.
- Primary content and optional secondary metadata.
- State indicators and utility affordances (icons, badges, controls).
- Optional helper text, grouping, and behavioral wrappers.
When to use
- Choose Divider when a repeated, structured interaction is required.
- Use it for clear, consistent operations across similar surfaces.
- Use in forms, lists, and action workflows where clarity matters.
When not to use
- Do not use only for decorative layout without interaction meaning.
- Avoid duplicating the same behavior without distinct user context.
- Prefer simpler HTML or textual content for static, non-interactive labels.
Variants
Component variants should be documented by API props and examples below.
States
Common states include idle, active, disabled, focused, and loading/pending states where applicable.
Behavior
Behavior should remain deterministic and keyboard-friendly, with clear visual feedback for every state transition.
Accessibility
- Use semantic structure and visible labels whenever possible.
- Preserve keyboard navigation and focus visibility.
- Announce status and changes when context requires it.
Content guidelines
- Prefer short, clear labels.
- Keep content actions scannable and outcome-oriented.
- Use consistent wording across similar components.
Examples
Line styles
7 styles — solid, dashed, dotted, thick, gradient-fade, gradient, double
Solid
Dashed
Dotted
Thick
Gradient fade
Gradient
Double
Colors
6 semantic colors — default, primary, secondary, success, warning, error
default
primary
secondary
success
warning
error
With label
label prop places text inside the line — center (default), left or right aligned
With icon
icon prop shows a centered icon in place of a text label
Special variants
chatDate pill badge · boldBreak chapter heading · sectionTitle label above line · spacingDots decorative dots
chatDate
boldBreak
sectionTitle
spacingDots
Inset — list separator
inset offsets the line from the left — aligns with the content text in list items with leading avatars
Vertical
orientation='vertical' renders an inline divider — give the parent a fixed height
Props / API
Api Props
Props