Divider

A rule between things, horizontal or vertical, optionally carrying a title in the middle of it.

Basic

A Divider draws a solid horizontal line between two blocks of content, here with size="small" for tighter spacing.

Variant

Set variant to solid, dashed, dotted or wave to change how the line is drawn, from a straight rule to a scalloped one.

Size

Set size to change the space above and below the line, from none, which sits flush, to large, the default.

Vertical

Set vertical to run the line between inline items, like links or the details of a post, in any variant.

With a title

Pass children to put a title in the middle of the line, such as a word or an icon with a label.

Title placement

Set titlePlacement to start, center or end to move the title along the line, and it flips on its own in right-to-left layouts.

Plain text

Set plain to show the title at body weight, for a short label on the line like "or" rather than a section name.

Custom content

Pass any node as children, like a button or a dropdown, and clear the title's side padding with classNames so the line meets it.

API Reference

Divider
Divider's props. Rows marked antuikit in the Version column are added by the kit.