Skip to Content

Separator

A layout component that creates thin horizontal or vertical rule lines to divide layout zones. 
For more information on this component configuration, visit Radix UI 

Vertical Orientation

Set the orientation prop to vertical to change the orientation of the component.

Sizes

Use the separator-{size} class to control the component size.

Size values can include:xssmmdlg.

For more information on all available sizing utilities, visit Tailwind 

Palette

Use the palette-{color} class to control the component color. Refer to the Colors documentation to see all available color and shade options.

For more information on all available color utilities, visit Tailwind .

Customizing

globals.css
:root { --ex-separator-size-xs: 1px; --ex-separator-size-sm: 2px; --ex-separator-size-md: 3px; --ex-separator-size-lg: 4px; --ex-separator-size-xl: 5px; }

API

For more information on this component configuration, visit Radix UI 

ElementSelector
Separator.ex-separator
PropTypeDefault
asElementTypediv
asChildbooleanfalse
decorativebooleanfalse
orientationenum of ["horizontal", "vertical"]horizontal
Last updated on