ComponentsDivider

Divider

A customizable divider to separate content horizontally or vertically



With Text





The Divider component is a simple horizontal or vertical line that separates content. It can be customized with different colors, opacity levels, and text.



Props

The Divider component accepts the following props:

NameTypeDefaultDescription
classNamestringCustom CSS classes to apply to the divider
textstringText to display between the divider lines
verticalbooleanfalseWhether the divider should be vertical or horizontal
colorstringgrayThe color scheme of the divider
opacitynumber70The opacity level of the divider (0-100)
marginstringMargin to apply to the divider
widthstringWidth of the divider
noWrapbooleanfalseWhether to prevent text wrapping in the divider text



Usage Examples

Horizontal Divider

Vertical Divider

Divider with Text

With Text

Custom Divider


Tip!

Use the color prop to change the color of the divider (primary, purple, red, etc).