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
import { Divider } from '@sigx/daisyui';
Basic Usage
Loading preview...
With Text
Loading preview...
Vertical
vertical is for horizontal layouts: the line runs top to bottom between
items in a Row.
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.
Loading preview...
Props
| Prop | Type | Default | Description |
|---|---|---|---|
vertical | boolean | false | Draw a vertical line for use inside a horizontal flex container |
class | string | - | Additional CSS classes |
Slots
| Slot | Description |
|---|---|
default | Optional text shown in the middle of the line |
