# Divider

A horizontal line that separates groups of related content.

Tabs: [Guidelines](/components/web/divider/divider.guidelines.md) · [Code](/components/web/divider/divider.code.md)

View more in [storybook](https://telescope.pleo.io/storybook/?path=/story/divider--default)

```tsx
<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"`.

[View in Figma](https://www.figma.com/design/XrMR1KTDyuhoAAQM6To84r/Re-brand-%F0%9F%94%AD-Web-Components---Telescope?node-id=8494-88093)[View on Github](https://github.com/pleo-io/web/tree/main/published-packages/telescope-components/src/components/divider)[Open in Storybook](https://telescope.pleo.io/storybook/?path=/story/divider--default)[View metrics](https://telescope-observatory.dev.pleo.io/)
