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

orientation
Orientation
'horizontal'
Description

The orientation of the separator.

Type
Default
'horizontal'
className
string | function
Description

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

Type
style
React.CSSProperties | function
Name
Type
render
ReactElement | 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

Additional Types

Separator.Props

Re-Export of Separator props as SeparatorProps

Separator.State