Command palette

@yasinsensoy/native

React Native · Components

Separator

A thin line separating sections (1 px, theme border color).

2 exports

Live example

The preview runs in the browser with the web component; the native component takes the same props and looks the same on iOS and Android.

Preview

@yasinsensoy/web

React component library.

Subsection

Code

import { Separator } from "@yasinsensoy/native";

<Separator />

Events

  1. Events appear here when you interact with the preview.

Import

import { Separator } from "@yasinsensoy/native";

Separator

component

A thin line separating sections (1 px, theme border color). Can hold text in the middle.

Separator({ orientation, decorative, label, style, }: SeparatorProps): JSX.Element

Examples

`<Separator label="or" />` · `<Separator orientation="vertical" />`

Separator props.

NameTypeDefaultDescription
orientation?"horizontal" | "vertical""horizontal"Orientation.
decorative?booleantrueDecorative only: hidden from screen readers.
label?ReactNodeText in the middle of the line (e.g. "or"); horizontal only.
style?StyleProp<ViewStyle>Container style.