Skip to content

    Browse components

    Hue Folds

    Smooth ribbons of color that bend, fold and drift; the cursor gently warps them like a lens. WebGL.

    Hue Folds

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/hue-folds

    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/hue-folds.json

    Usage

    import { HueFolds } from "@/components/ui/hue-folds";
    
    <div className="relative h-96">
      <HueFolds bands={3} />
    </div>

    Props

    PropTypeDefaultDescription
    colorsstring[]["#ff5e3a","#ff2d95","#7a5cff","#00c2ff"]Up to four colors the bands flow through.
    speednumber1Flow speed multiplier.
    scalenumber1Zoom; higher means wider bends.
    bandsnumber3Number of bands across the view.
    warpnumber1How strongly the cursor warps the bands.
    classNamestring—Extra classes for the root element.