Separator
A separator element accessible to screen readers.
View as MarkdownAnatomy
Import the component and use it as a single part:
Anatomy
import { Separator } from '@base-ui-components/react/separator';
<Separator />API reference
styleReact.CSSProperties | function
—
styleReact.CSSProperties | function
—- Name
- Type
- | React.CSSProperties | ((state: Separator.State) => CSSProperties | undefined) | undefined
orientationOrientation
'horizontal'
orientationOrientation
'horizontal'
- Name
- Description
- The orientation of the separator. 
- Type
- 'horizontal' | 'vertical' | undefined
- Default
- 'horizontal'
classNamestring | function
—
classNamestring | function
—- Name
- Description
- CSS class applied to the element, or a function that returns a class based on the component’s state. 
- Type
- | string | ((state: Separator.State) => string | undefined)
renderReactElement | function
—
renderReactElement | function
—- Name
- Description
- Allows you to replace the component’s HTML element with a different tag, or compose it with another component. - Accepts a - ReactElementor a function that returns the element to render.
- Type
- | ReactElement | (( props: HTMLProps, state: Separator.State, ) => ReactElement)