Separator
Create borders between components
Separator draws an accessible horizontal or vertical boundary between groups of content.
Features
Horizontal and vertical orientation
Web separator role and aria-orientation
Installation
Separator is already installed in tamagui, or you can install it independently:
yarn
npm
bun
pnpm
Usage
Separator uses the borderWidth and borderColor attributes for its style, so override those when extending it.
API reference
Separator
Separator extends View, inheriting all the Tamagui standard props, plus:
Props
vertical
boolean
Shows the separator vertically.
Source
v2-look Separator: theme line color over the unstyled @tamagui/ui Separator behavior (orientation + layout + the collapsed 1px rule, transparent by default). Supports the vertical variant. This is the exact source the registry ships — copy it into your app and the examples above import from your copy.
components/tamagui/Separator.tsxDependencies
yarn add @tamagui/core @tamagui/separatorExpects theme tokens: background-focus.
Need raw behavior without any skin? tamagui/unstyled re-exports the @tamagui/ui primitives (advanced).