Skip to content

    Browse components

    Modern Loader

    A gradient comet arc orbits with a glowing head while the ring breathes between circle and squircle, around a counter-spinning inner arc and a morphing core.

    Open
    Customize

    Installation

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

    Usage

    import { ModernLoader } from "@/components/ui/modern-loader";
    
    <ModernLoader size={64} colors={["#22d3ee", "#a855f7"]} />

    Props

    PropTypeDefaultDescription
    sizenumber96Px.
    colorsstring[]["#22d3ee","#a855f7","#f43f5e"]Arc gradient stops, tail to head.
    thicknessnumber6Ring thickness in px.
    speednumber1Speed multiplier.
    labelstring"Loading"Screen reader text.
    classNamestring—Extra classes for the root element.