Divider

A divider with horizontal/vertical orientations and solid / dashed / dotted / gradient styles. Horizontal dividers can carry a centred label with alignment and spacing controls.

Props

PropTypeDefaultDescription
orientation'horizontal' | 'vertical''horizontal'Orientation: horizontal / vertical
variant'solid' | 'dashed' | 'dotted' | 'gradient''solid'Style: solid / dashed / dotted / gradient
spacing'none' | 'sm' | 'md' | 'lg''md'Spacing: none / sm / md / lg, defaults to md
labelReactNode—Centred label, horizontal only
align'start' | 'center' | 'end''center'Label alignment: start / center / end, defaults to center
...restHTMLAttributes—Remaining props are forwarded to the native div