Divider#

Divider draws a horizontal rule between stacked content, optionally with a label in the middle. Set vertical to draw a vertical line between items laid out in a row.

Import#

TSX
import { Divider } from '@sigx/daisyui';

Basic Usage#

TSX
Loading preview...

With Text#

TSX
Loading preview...

Vertical#

vertical is for horizontal layouts: the line runs top to bottom between items in a Row.

TSX
Loading preview...

Colours and Alignment#

DaisyUI's modifier classes pass straight through class: divider-primary and friends colour the line, divider-start / divider-end move the label.

TSX
Loading preview...

Props#

PropTypeDefaultDescription
verticalbooleanfalseDraw a vertical line for use inside a horizontal flex container
classstring-Additional CSS classes

Slots#

SlotDescription
defaultOptional text shown in the middle of the line