Skip to content

    Browse components

    Thunder Loader

    A lightning bolt that charges up in stuttering surges while arcs crackle around it, then flashes white, throws sparks and discharges. Pass progress for a determinate meter.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/thunder-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/thunder-loader.json

    Usage

    import { ThunderLoader } from "@/components/ui/thunder-loader";
    
    <ThunderLoader size={64} />
    <ThunderLoader progress={uploadPct} label="Uploading" />

    Props

    PropTypeDefaultDescription
    sizenumber96Px.
    colorstring"#facc15"Charge color.
    speednumber1Cycle speed multiplier.
    labelstring"Charging"Screen reader text.
    progressReactNode—0-100 to show a determinate charge (role=progressbar). Omit to loop.
    classNamestring—Extra classes for the root element.