Skip to content

Divider Component

A divider component used to separate content.

Properties

NameTypeDefaultDescription
type'thin' | 'medium' | 'bold''medium'The thickness of the divider.

CSS Parts

NameDescription
dividerThe main container for the divider.

Check this link to learn how to use CSS parts for Divider Component.

CSS Properties

TokenDefaultDescription
--tap-divider-background-color--tap-sys-color-border-primaryThe background color of the divider.
--tap-divider-margin--tap-sys-spacing-4The margin around the divider.
--tap-divider-thin-height--tap-sys-spacing-1The height of the thin divider.
--tap-divider-medium-height--tap-sys-spacing-2The height of the medium divider.
--tap-divider-bold-background-color--tap-sys-color-surface-secondaryThe background color of the bold divider.
--tap-divider-bold-height--tap-sys-spacing-4The height of the bold divider.