Skip to content

Separtor Primitive

Slot Primitives Types Primitives

Creates a visual or semantic distinction between content.

Installation

Copy/paste the following code to ~/components/primitives/separator/index.tsx

Copy/paste the following code to ~/components/primitives/separator/types.ts

Usage

import * as SeparatorPrimitive from '~/components/primitives/separator';
function Example() {
return <SeparatorPrimitive.Root />
}

Props

Root

Extends View props

PropTypeNote
orientation’horizontal’ | ‘vertical’Defaults to horizontal (optional)
decorativeboolean(optional)
asChildboolean(optional)