Divider
The Divider component provides a visual separator between content sections. Supports horizontal and vertical orientations, four visual variants (
solid, dashed, dotted, gradient), an aligned color vocabulary with a soft default tuned for separators, an opacity shorthand, and optional labels.Examples
(7)Properties
(24)Playground
Basic Usage
Insert horizontal dividers between sections to separate content; switch the
variant prop to toggle between solid and dashed lines.Color Variants
Select a
color to match semantic palettes and combine it with label plus variant to fit your divider into content sections.Gradient & opacity
The
gradient variant fades transparent → color → transparent, perfect for breaking up sections without a hard edge. The opacity prop is a shorthand for style={{ opacity }} — combine it with color to dial in subtle separators.Labeled Dividers
Provide a
label node and adjust labelPosition plus color to separate form sections with contextual dividers.Vertical Dividers
Switch
orientation="vertical" to separate horizontal layouts like navigation and add label or color when you need emphasis.Sizes
Demonstrates how the
size prop accepts both numeric values and spacing tokens so you can dial in subtle, comfortable, or bold divider weights in horizontal and vertical layouts.Variants
Showcase solid, dashed, and dotted dividers in both horizontal and vertical layouts to highlight how each variant can communicate different section breaks.
Scan to open this page on your phonereact-ui-library.com/components/Divider
</>
react-ui-library
100+ accessible, themeable components that work seamlessly across iOS, Android, and Web.
A Platform Blocks product.
Quick Links
Resources