Components
Retro Grid
CSS-only perspective grid receding to the horizon — a synthwave landing-page backdrop.
Installation
npx shadcn@latest add https://ui.saasflare.io/r/retro-grid.jsonpnpm add @saasflare/uiUsage
Loading…
"use client"import { RetroGrid } from "@saasflare/ui"/** Perspective grid backdrop with centered hero copy. */export function Demo() { return ( <div className="relative flex h-64 w-full items-center justify-center overflow-hidden rounded-lg border bg-fd-card p-8"> <RetroGrid /> <div className="relative z-10 text-center"> <h2 className="text-2xl font-bold tracking-tight">The future of shipping SaaS</h2> <p className="mt-2 text-sm text-muted-foreground">From idea to production in days.</p> </div> </div> )}Custom
Loading…
"use client"import { RetroGrid } from "@saasflare/ui"/** Recolor the grid and tighten the cell size and tilt. */export function Demo() { return ( <div className="relative flex h-64 w-full items-center justify-center overflow-hidden rounded-lg border bg-fd-card p-8"> <RetroGrid gridColor="hsl(var(--primary))" gridSize={40} angle={70} /> <div className="relative z-10 text-center"> <h2 className="text-2xl font-bold tracking-tight">Branded backdrop</h2> </div> </div> )}API Reference
Prop
Type