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

(default:

'horizontal'

)
Description

The orientation of the separator.

Type
'horizontal' | 'vertical' | undefined
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
string | ((state: Separator.State) => string)
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
| ReactElement
| ((
    props: HTMLProps,
    state: Separator.State,
  ) => ReactElement)