Browse components
Separator
Horizontal or vertical divider with an optional centered label, a primary gradient variant and a draw-in animation that grows outward from the label.
Installation
npx shadcn@latest add @glint-ui/separatorFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/separator.json
Usage
import { Separator } from "@/components/ui/separator";
<Separator />
<Separator label="or" variant="gradient" animated />
<Separator orientation="vertical" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | "" | Text centered on the line (empty for none). |
| variant | "solid" | "dashed" | "gradient" | "solid" | Line style. |
| animated | boolean | false | Draw the line in on mount. |
| orientation | "horizontal" | "vertical" | "horizontal" | Line direction. Vertical fills its parent's height. |
| decorative | boolean | true | role="none" when true, otherwise role="separator". |
| className | string | — | Extra classes for the root element. |