Skip to content

    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.

    Open
    Customize

    solid
    dashed
    gradient

    Installation

    npx shadcn@latest add @glint-ui/separator

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/separator.json

    Usage

    import { Separator } from "@/components/ui/separator";
    
    <Separator />
    <Separator label="or" variant="gradient" animated />
    <Separator orientation="vertical" />

    Props

    PropTypeDefaultDescription
    labelstring""Text centered on the line (empty for none).
    variant"solid" | "dashed" | "gradient""solid"Line style.
    animatedbooleanfalseDraw the line in on mount.
    orientation"horizontal" | "vertical""horizontal"Line direction. Vertical fills its parent's height.
    decorativebooleantruerole="none" when true, otherwise role="separator".
    classNamestring—Extra classes for the root element.