Separtor Primitive
Creates a visual or semantic distinction between content.
Installation
Install the component via your command line.
Copy/paste the following code to ~/components/primitives/separator/index.tsx
Copy/paste the following code to ~/components/primitives/separator/types.ts
Usage
Props
Root
Extends View
props
Prop | Type | Note |
---|---|---|
orientation | ’horizontal’ | ‘vertical’ | Defaults to horizontal (optional) |
decorative | boolean | (optional) |
asChild | boolean | (optional) |