Divider

维护者:
v4dyar4
GitHub
orientation
align
children

The Divider component is used as a thin line for delimiting and grouping elements to reinforce visual hierarchy.

import {Divider} from '@gravity-ui/uikit';
<Divider className="custom-divider" direction="horizontal" />

Orientation

Use the direction property to manage the Divider orientation. The default orientation is horizontal.

Horizontal

Vertical

Custom content

Alignment

Properties

NameDescriptionTypeDefault
classNameclass HTML attributestring-
orientationDetermines the divider directionhorizontal - verticalhorizontal
childrenCustom content inside the dividerReact.ReactNode
alignCustom content positionstart - center - endstart
stylestyle HTML attributeReact.CSSProperties
qadata-qa HTML attribute, used for testingstring

CSS API

NameDescription
--g-divider-colorDivider color
--g-divider-sizeDivider size (height for horizontal orientation, width for vertical orientation)