Prepared Docs

Prepared Docs

⌘K

    Loading navigation…

User

  1. Primitives
  2. Separator
  3. API and Development

Separator

API and Development

View Source
Submit Issue

Separator wraps Radix Separator with Prepared color variants. Defaults to decorative so the line is hidden from assistive tech; set decorative={false} when the rule conveys structural meaning.

Props

Name

Type

Default

Description

className

string

—

Additional CSS class name applied to the separator element.

color

SeparatorColor

SeparatorColor.Base

Color variant for the separator.

decorative

boolean

true

When true, the separator is presentational only and hidden from the accessibility tree.

orientation

"horizontal" | "vertical"

horizontal

Direction of the separator line.

Storybook

Interactive examples and edge cases for this component are in Storybook.

Default
Orientations
Colors
In Context

Default

Orientations

Colors

In context

Previous

Separator / Usage

Next

Separator / Accessibility

On this page

Props
Storybook
Default
Orientations
Colors
In context