Components

Separator

Visual divider component for horizontal or vertical separation.

iOSAndroid
Preview Separator on your device

Scan with Expo Go

Download Expo Go, then scan the QR code to preview native components.

Installation

pnpm dlx @docyrus/cli add @docyrus/rn-separator

Usage

import { Separator } from '@/components/docyrus-native/separator';

<Separator />
<Separator orientation="vertical" />
<Separator thickness={2} />

API Reference

PropTypeDefaultDescription
orientation'horizontal' | 'vertical''horizontal'Separator direction
colorstringtheme borderCustom color
thicknessnumber1Line thickness
classNamestring—Additional CSS classes

Type Exports

TypeDescription
SeparatorPropsProps for Separator component
SeparatorOrientation'horizontal' | 'vertical'

On this page