Skip to content
Components

Divider

A horizontal line that separates groups of related content.

Basic usage

import {Divider, Stack, Text} from '@pleo-io/telescope'


export const Sections = () => (
    <Stack space={16}>
        <Text>Section above</Text>
        <Divider />
        <Text>Section below</Text>
    </Stack>
)

The divider renders an <hr> and forwards all HTML attributes to it. See the API reference for every prop, and the Guidelines for when to use it.


Accessibility

Drop the separator semantics for a purely decorative line.

import {Divider} from '@pleo-io/telescope'


export const DecorativeDivider = () => <Divider role="presentation" />

API reference

This component doesn't accept any custom props.
Didn't find what you were looking for?
Edit this page