Skip to content

    Browse components

    Neon Floor

    A neon perspective grid floor swept by a glowing scan line, with a horizon that follows the cursor.

    Neon Floor

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/neon-floor

    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/neon-floor.json

    Usage

    import { NeonFloor } from "@/components/ui/neon-floor";
    
    <div className="relative h-96 bg-black">
      <NeonFloor gridColor="#8b5cf6" scanColor="#22d3ee" />
    </div>

    Props

    PropTypeDefaultDescription
    gridColorstring"#8b5cf6"Grid line color.
    scanColorstring"#22d3ee"Scanning light color.
    densitynumber1Grid cell density.
    speednumber1Scan sweep speed.
    scanWidthnumber0.5Thickness of the scan band.
    glownumber1Overall glow.
    classNamestring—Extra classes for the root element.