Sajari UI

Divider

Dividers are used to display a thin horizontal or vertical line.

Divider composes Box so you can use all the style props and add responsive styles as well. It renders an <hr> tag by default.

Import

Usage

It renders an horizontal divider by default.

Editable Example

Changing the orientation

To change the orientation of the divider, pass the orientation prop and set it to either vertical or horizontal

Editable Example
Part 1
Part 2

Changing the border color

To change the border color of the divider, as you can guess, pass the borderColor prop.

Editable Example
Part 1
Part 2

Props

The Divider composes the Box component, so you can pass all Box props.

NameTypeDefaultDescription
orientationhorizontal, verticalhorizontalThe orientation