Skip to content

    Browse components

    Loader

    Five small, clean loaders in one component: a stretching arc spinner, squashy hopping dots, equalizer bars, a heartbeat pulse and bunching orbit dots.

    Open
    Customize
    spinner
    dots
    bars
    pulse
    orbit

    Installation

    npx shadcn@latest add @glint-ui/loader

    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/loader.json

    Usage

    import { Loader } from "@/components/ui/loader";
    
    <Loader variant="dots" size={24} />

    Props

    PropTypeDefaultDescription
    variant"spinner" | "dots" | "bars" | "pulse" | "orbit""spinner"Which loader to draw.
    sizenumber32Box size in px.
    colorstring"currentColor"Any CSS color; inherits the text color by default.
    speednumber1Speed multiplier.
    labelstring"Loading"Screen reader text.
    classNamestring—Extra classes for the root element.