Skip to main content
For development, import Divider from @servicetitan/anvil2. For design, find it in the Anvil2 file.

Anatomy

The Divider consists of two primary elements that work together to separate content.
Divider
Anatomy
  1. Divider line
  2. Content

Options

The Divider supports spacing, orientation, and content alignment configurations to accommodate various separation scenarios.

Spacing

Vertical

Divider supports vertical orientation for separating content horizontally.

Content

Divider supports content to provide additional information to users.

Content Alignment

Content aligns to start, end, or center.

Behavior

The Divider responds to spacing and orientation requirements while maintaining consistent visual separation.

Usage Guidelines

Don’t
Don’t add excessive amounts of Dividers.

How to Use

Spacing considerations

Divider supports multiple spacing configurations. Follow these general principles:

Content

Content within the Divider should provide additional context when needed, keeping it concise and informative.

Keyboard Interaction

Users can navigate the Divider using standard keyboard controls.

Code

Common Examples

Adjust space around dividers

The following values can be provided to the spacing prop of the Divider, and increment by 0.5rem (except for "half", which increments by 0.25rem).

Divider orientation

The divider can be used to separate both horizontal (main axis) and vertical (cross axis) content. By default, dividers are on the main axis. Set the vertical prop on the Divider component to true to use the cross axis.

Main axis (default)

Cross axis (vertical)

Creating sections with Card

To create sections within a Card, use a padding of 0 along with the Divider, then give each child element its own padding as needed.
Last modified on October 27, 2026