Skip to content

    Browse components

    Slat Light

    Venetian-blind strips refracting a drifting gradient, lit by a spotlight that follows the cursor.

    Slat Light

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/slat-light

    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/slat-light.json

    Usage

    import { SlatLight } from "@/components/ui/slat-light";
    
    <div className="relative h-96">
      <SlatLight stripes={16} angle={0} />
    </div>

    Props

    PropTypeDefaultDescription
    colorsstring[]["#12092e","#6d28d9","#ec4899","#fdba74"]Gradient colors (up to four).
    stripesnumber16Strips across the width.
    anglenumber0Strip angle in degrees.
    distortionnumber1How much each strip refracts the gradient.
    spotlightColorstring"#ffffff"Spotlight color.
    spotlightRadiusnumber0.45Spotlight radius (fraction of height).
    speednumber1Gradient drift speed.
    classNamestring—Extra classes for the root element.