code/tamagui.dev/data/docs/components/separator/2.0.0.mdx
<Highlights features={[Supports horizontal and vertical orientation.]} />
Separator is already installed in tamagui, or you can install it independently:
npm install @tamagui/separator
Separator uses the borderWidth and borderColor attribute for its style, so be sure to override those when extending it.
export default () => (
<XStack alignItems="center">
<Paragraph>Blog</Paragraph>
<Separator alignSelf="stretch" vertical />
<Paragraph>Docs</Paragraph>
<Separator alignSelf="stretch" vertical />
<Paragraph>Source</Paragraph>
</XStack>
)
Separator extends Stack views inheriting all the Tamagui standard props, plus:
<PropsTable
data={[
{
name: 'vertical',
required: false,
type: 'boolean',
description: Shows the separator vertically.,
},
]}
/>