File: separator.md | Updated: 11/15/2025
ThemesThemes PrimitivesPrimitives IconsIcons ColorsColors
Getting started Styling Layout Releases Resources
Overview Color Dark mode Typography Spacing Breakpoints Radius Shadows Cursors
Box Flex Grid Container Section
Text Heading Blockquote Code Em Kbd Link Quote Strong
Alert Dialog Aspect Ratio Avatar Badge Button Callout Card Checkbox Checkbox Group Checkbox Cards Context Menu Data List Dialog Dropdown Menu Hover Card Icon Button Inset Popover Progress Radio Radio Group Radio Cards Scroll Area Segmented Control Select Separator Skeleton Slider Spinner Switch Table Tabs Tab Nav Text Area Text Field Tooltip
Accessible Icon Portal Reset Slot Theme Visually Hidden
Components
Visually or semantically separates content.
View source Report an issue View in Playground
Tools for building high-quality, accessible UI.
ThemesPrimitivesIconsColors
<Text size="2">
Tools for building high-quality, accessible UI.
<Separator my="3" size="4" />
<Flex gap="3" align="center">
Themes
<Separator orientation="vertical" />
Primitives
<Separator orientation="vertical" />
Icons
<Separator orientation="vertical" />
Colors
</Flex>
</Text>
This component inherits props from the Separator primitive and supports common margin props .
| Prop | Type | Default |
| --- | --- | --- |
| orientation | Responsive<"horizontal" \| "vertical"> | "horizontal" |
| size | Responsive<"1" \| "2" \| "3" \| "4"> | "1" |
| color<br><br>Prop description | enum<br><br>See full type | "gray" |
| decorative | boolean | true |
Use the size prop to control the size of the separator. The largest step takes full width or height of the container.
<Flex direction="column" gap="4">
<Separator orientation="horizontal" size="1" />
<Separator orientation="horizontal" size="2" />
<Separator orientation="horizontal" size="3" />
<Separator orientation="horizontal" size="4" />
</Flex>
<Flex align="center" gap="4" height="96px">
<Separator orientation="vertical" size="1" />
<Separator orientation="vertical" size="2" />
<Separator orientation="vertical" size="3" />
<Separator orientation="vertical" size="4" />
</Flex>
Use the color prop to assign a specific color
.
<Flex direction="column" gap="3">
<Separator color="indigo" size="4" />
<Separator color="cyan" size="4" />
<Separator color="orange" size="4" />
<Separator color="crimson" size="4" />
</Flex>
Use the orientation prop to control whether the separator is horizontal or vertical.
<Flex align="center" gap="4">
<Separator orientation="horizontal" />
<Separator orientation="vertical" />
</Flex>
PreviousSelect
NextSkeleton