Components
Divider
Visual separator between content sections, horizontal or vertical with an optional label.
Installation
npx asteria-ui add dividerUsage
import { Divider } from "@/components/ui/divider";
<Divider />
<Divider label="OR" />Examples
With a label
OR
Vertical
LeftRight
API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| orientation | "horizontal" | "vertical" | "horizontal" | Line direction. |
| label | ReactNode | — | Optional label rendered between two line segments. |
Accessibility
Accessibility
Role.
role="separator", witharia-orientationset for vertical dividers.Non-interactive. A structural separator (not an interactive/resizable one) correctly has no
tabIndex— it's decorative by default.