PUI.Separator

Copy Markdown

PUI.Separator provides a small visual and semantic boundary between related content.

Usage

<.separator />
<.separator orientation="vertical" class="mx-2 h-5" />

Separators are decorative by default. For a meaningful structural boundary, set decorative={false} and provide an accessible label where appropriate:

<.separator decorative={false} aria-label="Profile sections" />

Attributes

AttributeDefaultDescription
orientation"horizontal""horizontal" or "vertical"
decorativetrueWhether assistive technology should ignore it
class""Additional utility classes
restGlobal HTML attributes