Dividers

Horizontal or vertical rules for sectioning your content.

javascript
import { Divider } from '@brainandbones/skeleton';

Usage

html
<Divider />

Vertical

html
<Divider vertical={true} borderWidth="border-l" />

Properties

Prop Type Default Values Description
verticalbooleanfalsetrue | falseWhen enabled, sets the width to zero and height to full.
borderWidthstringborder-tclassProvide classes to set the border width.
borderStylestringborder-solidclassProvide classes to set the border style.
borderColorstringborder-surface-300 dark:border-surface-700classProvide classes to set the border color.
marginstringm-0classProvide classes to set the margin.
opacitystringopacity-fullclassProvide classes to set opacity.

Accessibility

Uses a horizontal rule hr tag, which has an inherent role="separator".