Components/Effects
Synthwave perspective grid that scrolls toward the horizon.
Driveinto the night
Installation#
npx shadcn@latest add https://get-neonkit.vercel.app/r/retro-grid.jsonUsage#
import { RetroGrid } from "@/components/ui/retro-grid"
<section className="relative overflow-hidden">
<RetroGrid color="magenta" />
<h1 className="relative">Hello</h1>
</section>Examples#
Angle, cell size and speed
angle 60 · cell 40 · speed 0.8
angle 78 · cell 80 · still
API reference#
RetroGrid
Fills its nearest positioned parent. The horizon sits halfway down.
| Prop | Type | Default |
|---|---|---|
color | NeonColorLine color. | inherited |
angle | numberFloor tilt in degrees. | 70 |
cellSize | numberGrid square size in pixels. | 56 |
speed | numberSeconds to travel one cell. 0 stops it. | 1.2 |
opacity | numberLine opacity. | 0.55 |
horizon | booleanGlowing horizon line. | true |
Accessibility#
- Decorative: rendered with aria-hidden and no pointer events. Stops moving under reduced motion.