Divider
Horizontal line with optional label or vertical divider
Import
Source
Docs
Package
Usage
Divider component renders horizontal or vertical line.
Customize hr border style by setting variant
prop:
With label
In horizontal orientation you can add label with any react node at left, right or center of Divider
by setting label
and control its appearance with labelPosition
and labelProps
(see Text component for full props reference):
Sizes
Divider has predefined sizes: xs, sm, md, lg, xl. You can pass size as number and it will be set as height in px:
Vertical orientation
Divider can be oriented vertically with orientation
prop. In this case size will change the divider width:
Label
Label
Label
Label
Label
Label