Skip to content

Separator ​

bo-separator marks a boundary between content. It is decorative by default, so it is hidden from assistive technology unless you set decorative="false".

Horizontal Separator ​

Section one
Section two
<div class="grid gap-3"><span>Section one</span><bo-separator /><span>Section two</span></div>

Orientation and Label ​

orientation accepts horizontal and vertical. A label places visible text at the center of the separator.

Navigation
or
Settings
<div class="flex items-center gap-4"><span>Navigation</span><bo-separator orientation="vertical" label="or" /><span>Settings</span></div>

API Reference ​

PropTypeDefaultDescription
idstringAutogeneratedElement id.
dataTestIdstringAutogeneratedTest id.
orientation'horizontal' | 'vertical'horizontalSeparator direction.
decorativebooleantrueHides the separator from assistive technology.
labelstring-Visible centered label.
roleHTMLAttributes['role']-Optional ARIA role.
ariaLabelstring-Accessible label.

Released under the MIT License.