Separator

A divider component to separate content with horizontal or vertical orientation.

Installation

Terminal
npx flexnative-cli add "https://registry.flexnative.com/c/separator.json"

Usage


Importing
import { Separator } from "@/components/ui/separator";
Using
<Separator orientation="horizontal" style={{ height: 10 }} />

API

Separator

A divider component to separate content with horizontal or vertical orientation.


PropTypeDescriptionDefault
orientationhorizontal, verticalThe orientation of the separator.horizontal
decorativebooleanWhether the separator is purely decorative.true
styleStyleProp<ViewStyle>Additional styles for the separator.-
...propsViewPropsAdditional native View props.-