Divider
A visual separator for grouping and organizing content sections.
When to Use
- To separate sections of content within a page
- To add horizontal or vertical dividers between inline elements
- To divide items in a list with labeled dividers
Import
Examples
Horizontal Divider
The default divider is a horizontal line.
With Text
Add a label to the divider with the children prop. Control text position with orientation.
Dashed
Use the dashed prop for a dashed line style.
Vertical Divider
Set type="vertical" for an inline vertical separator.
Plain Style
Use plain to render text without the default bold styling.
API
DividerProps
type—"horizontal" | "vertical"— Direction of the divider (default:"horizontal")dashed—boolean— Whether the line is dashed (default:false)orientation—"left" | "right" | "center"— Position of the title text (default:"center")orientationMargin—string | number— Margin between title and the closest borderplain—boolean— Whether to use plain styling for text (default:false)children—ReactNode— Text content displayed in the dividerclassName—string— Custom CSS classstyle—CSSProperties— Inline styles