bits

Separator

Visually divide or separate sections or elements, providing clarity and organization.

Radix Primitives

An open-source UI component library.

Blog
Docs
Source

Structure

	<script lang="ts">
  import { Separator } from "bits-ui";
</script>
 
<Separator.Root />
	<script lang="ts">
  import { Separator } from "bits-ui";
</script>
 
<Separator.Root />

Component API

Separator.Root

An element used to separate content.

Property Type Description
asChild
boolean

Whether to use render delegation with this component or not.

Default: false
orientation
'horizontal' | 'vertical'

The orientation of the separator.

Default: 'horizontal'
decorative
boolean

Whether the separator is decorative or not, which will determine if it is announce by screen readers.

Default: false
Data Attribute Description/Value
data-orientation

The orientation of the separator.

Value: 'horizontal' | 'vertical'

🚧 UNDER CONSTRUCTION 🚧