elementsseparator
Separator
Visual divider with configurable orientation, style, and optional label content.
Import#
Slot Structure#
Horizontal or vertical rule with an optional content label in the center.
Without content#
With content#
Examples#
Sizes#
Border thickness variants.
Types#
Solid, dashed, and dotted divider styles.
With Content + Vertical#
Inline content and vertical separators in flexible layouts.
API Reference#
Attributes#
Slot
root4 attributesSeparator line container, including optional label content.
Data Attributes
| Data Attribute | Description |
|---|---|
| data-orientation | Stores the rendered orientation. |
ARIA Attributes
| ARIA Attribute | Description |
|---|---|
| aria-hidden | Hides decorative content from assistive technology. |
| aria-orientation | Communicates horizontal or vertical orientation. |
| role | Defines the semantic role exposed to assistive technology. |
Props#
| Prop | Type | Default | Description |
|---|---|---|---|
| children | JSX.Element | — | Additional content to render inside the separator (usually between two borders). |
| class | ClassValue | — | Class applied to the component root or trigger element. |
| classes | SeparatorT.Classes | undefined | — | — |
| decorative | boolean | undefined | false | Whether the separator is decorative (hidden from assistive technologies). |
| orientation | "horizontal" | "vertical" | undefined | horizontal | The orientation of the separator. |
| ref | JSX.HTMLElementTags["div"] extends { ref?: infer Ref; } ? Ref : never | undefined | — | — |
| size | "xs" | "sm" | "md" | "lg" | "xl" | undefined | — | — |
| style | JSX.CSSProperties | undefined | — | — |
| styles | SeparatorT.Styles | undefined | — | — |
| type | "solid" | "dashed" | "dotted" | undefined | — | — |