Loading preview
Aurora Background
BackgroundsSoft, blurred color fields that drift slowly behind content.
A perspective grid floor that scrolls toward the viewer and fades at the horizon.
npx shadcn@latest add @venusui/retro-gridRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/retro-grid.tsxThe code behind the preview above.
retro-grid-demo.tsx
import { RetroGrid } from "@/components/ui/retro-grid"
export default function RetroGridDemo() {
return (
<div className="relative flex h-72 w-full max-w-2xl items-center justify-center overflow-hidden rounded-xl border bg-background">
<RetroGrid />
<p className="relative text-4xl font-semibold tracking-tight">Retro Grid</p>
</div>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| angle | number | 65 | Tilt of the grid plane, in degrees. |
| cellSize | number | 56 | Grid cell size, in pixels. |
All <div> props, including className and style.
retro-grid keyframes and --animate-retro-grid to your CSS.relative overflow-hidden section and put your content after it with relative.angle flattens the floor; a larger cellSize makes the grid feel closer.aria-hidden and ignores the pointer.position: relative and overflow: hidden.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.Soft, blurred color fields that drift slowly behind content.
Curved lines across a section with light traveling along them.
Beams of light fall to the floor and burst into sparks when they land.