Skip to contents

Separator

A separator element accessible to screen readers.

View as Markdown

Anatomy

Import the component and use it as a single part:

Anatomy

API reference

orientationOrientation'horizontal'
Description

The orientation of the separator.

Type
Default
'horizontal'
classNamestring | function
Description

CSS class applied to the element, or a function that returns a class based on the component’s state.

Type
styleReact.CSSProperties | function
Name
Type
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 ReactElement or a function that returns the element to render.

Type

Separator.PropsHide

Re-Export of Separator props as SeparatorProps

Separator.StateHide