Browse components
Neon Floor
A neon perspective grid floor swept by a glowing scan line, with a horizon that follows the cursor.
Neon Floor
Installation
npx shadcn@latest add @glint-ui/neon-floorFirst 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
| Prop | Type | Default | Description |
|---|---|---|---|
| gridColor | string | "#8b5cf6" | Grid line color. |
| scanColor | string | "#22d3ee" | Scanning light color. |
| density | number | 1 | Grid cell density. |
| speed | number | 1 | Scan sweep speed. |
| scanWidth | number | 0.5 | Thickness of the scan band. |
| glow | number | 1 | Overall glow. |
| className | string | — | Extra classes for the root element. |