Skip to content

Divider

A React source recipe on a native hr element using the public TIS Divider classes and tokens.

Design

Functional preview

Running with the React source recipe distributed through shadcn and based on Base UI.

Loading functional preview…

Toolbar · React · shadcn/Base UI

A vertical separator rendered by the React recipe between Buttons from the same output.

Loading functional preview…

Anatomy


1 2 3
1 Separator element (.ds-divider) — use <hr> for semantic separation; mark it as decorative when it is only visual.
2 Orientation — horizontal by default; vertical with .ds-divider--vertical.
3 Border token — uses semantic divider/border color, not hardcoded color.

Horizontal divider

The default divider spans the full width of its container and adds vertical separation between content.

Content above the divider


Content below the divider

In a list

Dividers between list items create visual grouping.

Notifications

Manage your notification preferences


Privacy

Control who can see your profile


Security

Two-factor authentication and password

Vertical divider

Use ds-divider--vertical inside a flex container to separate items horizontally.

Left
Center
Right

In a toolbar

Vertical dividers separate groups of actions in a toolbar.


Token mapping

PropertyTokenCSS variable
line colorcomponent.divider.line.color.default--ds-divider-line-color-default
line thicknesscomponent.divider.line.thickness.default--ds-divider-line-thickness-default
line radiuscomponent.divider.line.radius.default--ds-divider-line-radius-default