Skip to content

Divider

Description

Divider is a component that visually and semantically separates content or components.

Appearance

Types

Divider has two types: primary and secondary. Secondary type helps to separate and show the connection between two parts of the content.

Divider types
useAppearanceStyles
primaryborder: 1px solid var(--border-primary)
secondaryborder: 1px dashed var(--border-primary)

Themes

The divider can be used either on a light or dark/colored background.

Divider themes
themeAppearanceStyles
Defaultborder: 1px solid var(--border-primary)
Invertborder: 1px solid var(--border-primary-invert)

Orientation

Divider orientation
OrientationExample
Horizontal
Vertical

Usage in UX/UI

The divider separates content visually and semantically, whether it's different or similar in meaning.

Divider usage
CaseExample
Contact information needs to be visually separated from the form.
Separate information about a report's data visually from the form, but maintain its connection to the form.

Released under the MIT License.

Released under the MIT License.