Primitives
Separator
A visual or semantic divider between content sections.
Import
import { Separator } from '@tallyui/primitives';Usage
<Separator.Root orientation="horizontal" />Components
Separator.Root
Renders a view element with the appropriate separator role.
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | Direction of the separator |
decorative | boolean | false | When true, removes the separator from the accessibility tree |
asChild | boolean | false | Merge props onto child instead of rendering |
Plus all React Native ViewProps.
Accessibility
- Role:
separator - When
decorativeistrue,roleis set tononeso screen readers skip it aria-orientationis set based on theorientationprop