Skip to content

Divider

Visual separator for grouping content.

<Divider {...args} />
<Divider orientation="horizontal" variant="subtle" label="Section 2" />
Subtle (default)
Strong
<div style={{display: 'flex', flexDirection: 'column', gap: '2rem'}}>
<div>
<Text color="secondary" size="sm">
Subtle (default)
</Text>
<Divider />
</div>
<div>
<Text color="secondary" size="sm">
Strong
</Text>
<Divider variant="strong" />
</div>
</div>
LeftRight
<div className={verticalContainerStyle}>
<Text>Left</Text>
<Divider orientation="vertical" />
<Text>Right</Text>
</div>
LeftRight
<div className={verticalContainerStyle} style={{height: '120px'}}>
<Text>Left</Text>
<Divider label="or" orientation="vertical" />
<Text>Right</Text>
</div>
A horizontal divider sized with the `width` prop (200px, then 60%).
<div style={{display: 'flex', flexDirection: 'column', gap: '1.5rem'}}>
<Text color="secondary" size="sm">
A horizontal divider sized with the `width` prop (200px, then 60%).
</Text>
<Divider width={200} />
<Divider variant="strong" width="60%" />
</div>
LeftMiddleRight
<div style={{display: 'flex', alignItems: 'center', gap: '1.5rem'}}>
<Text>Left</Text>
<Divider height={40} orientation="vertical" />
<Text>Middle</Text>
<Divider height={80} orientation="vertical" variant="strong" />
<Text>Right</Text>
</div>
Content above the divider.
Content below the divider.
<Card>
<Text>Content above the divider.</Text>
<div style={{marginBlock: '1rem'}}>
<Divider isFullBleed />
</div>
<Text>Content below the divider.</Text>
</Card>
LeftRight
<Card style={{height: '120px'}}>
<div className={verticalContainerStyle} style={{height: '100%'}}>
<Text>Left</Text>
<Divider isFullBleed orientation="vertical" />
<Text>Right</Text>
</div>
</Card>

Visual separator for grouping content.

PropTypeDefaultDescription
aria-labelstringAccessible label for the separator. Use when the divider conveys meaning beyond a visual break (e.g., separating named sections).
classNamestringAdditional CSS class names applied to the root element.
data-testidstringTest ID applied to the root element.
heightSizeValueLength of a vertical divider. Numbers are pixels, strings are used as-is. Ignored for horizontal dividers, which size to their container width.
isFullBleedbooleanWhether the divider should escape container padding.
labelReactNodeOptional label rendered in the divider.
orientation"horizontal" | "vertical"Divider orientation. Default is horizontal.
refRef<HTMLDivElement>Ref forwarded to the root element.
styleCSSPropertiesInline styles applied to the root element.
variant"strong" | "subtle"Visual weight of the divider. Default is subtle.
widthSizeValueLength of a horizontal divider. Numbers are pixels, strings are used as-is. Ignored for vertical dividers, which size to their container height.