ZUI

Search documentation

Find a page or a heading.

Separator

A one-pixel rule between groups of content, hidden from screen readers unless it marks a real boundary.

Installation

bash

The CLI writes components/ui/separator.tsx, installs Utils, and adds @rn-primitives/separator and class-variance-authority.

Usage

tsx
tsx

API reference

Separator

Takes every prop of the @rn-primitives/separator root, plus:

A decorative separator is hidden from assistive technology. Pass decorative={false} when it marks a real boundary a screen reader should announce.

separatorVariants

The classes of each orientation, for a view that is not a Separator but should look like one.