Divider
Headless primitive for separating nearby content visually or semantically.
Divider in motion
When to Use
Use Divider to show that two groups of content are separate. Keep it decorative when the line only helps sighted users. Make it semantic when the separation is important to understanding the page. Do not use Divider as a draggable resize handle; an interactive splitter needs value state and keyboard controls that Divider does not provide.
Features
The behavior Atom owns before your product adds appearance.
- Supports horizontal and vertical orientation.
- Defaults to decorative semantics.
- Uses
hrby default when it has no children. - Uses
divby default when it contains a label or other children. - Preserves native props and supports custom rendering.
- Keeps the explicit
@flowstack-ui/atom/dividersubpath server-safe for React Server Component composition.
Import
The explicit subpath is server-safe. The package root remains a client entrypoint because it also exports interactive primitives.
Anatomy
API Reference
Root
Creates the dividing boundary. Set decorative={false} when assistive
technology should perceive it as a separator.
| Prop | Type | Default |
|---|---|---|
orientation | "horizontal" | "vertical" | "horizontal" |
decorative | boolean | true |
children | ReactNode | - |
asChild | boolean | false |
render | RenderProp | - |
| ARIA attribute | Values |
|---|---|
role | "none" when decorative; "separator" otherwise |
aria-orientation | "vertical" for a semantic vertical separator; horizontal is the ARIA default |
| Data attribute | Values |
|---|---|
[data-slot] | "divider" |
Examples
Decorative Divider
Named Semantic Divider
Accessibility
A semantic Divider uses the
WAI-ARIA Separator pattern.
Decorative dividers are removed from the accessibility tree with role="none".
Semantic dividers are static separators, not focusable widgets, so Divider owns
no keyboard interaction.
Changelog
0.22.6 - 2026-08-10
- Removed the unnecessary client boundary from the pure-render Divider primitive and explicit subpath, with packed React Server Component coverage.
- Added public Agent Knowledge for component selection, required composition, recurring mistakes, and validation.
0.1.0
- Initial Atom release.