base-ui-svelte

Separator

Visually or semantically separates content.

View as Markdown

API Reference

Props mirror Base UI React where applicable, adapted for Svelte 5. Native HTML attributes for the rendered element are also accepted unless noted.

Separator

A separator element accessible to screen readers. Renders a <div> element.

Props

orientation SeparatorOrientation 'horizontal'
Description

The orientation of the separator.

Type
SeparatorOrientation
Default
'horizontal'

Data attributes

AttributeDescription
data-orientationIndicates the orientation of the separator.