Skip to content
Components

Divider

A horizontal line that separates groups of related content.
View more in Storybook
Show code
<Stack space={16}>
    <Text>Section above</Text>
    <Divider />
    <Text>Section below</Text>
</Stack>

When to use

Use a divider to separate groups of related content, such as sections in a page, a panel or a list of settings. Prefer spacing first: only add a divider when whitespace alone doesn't make the grouping clear.

Inside a card, use Card.Divider instead: it keeps the card's horizontal padding.


Accessibility

A divider is announced as a separator by screen readers. When the line is purely decorative and doesn't mark a change of topic, hide it from assistive technology with role="presentation".

Didn't find what you were looking for?
Edit this page