Skip to content
synccn

Retro Grid

Perspective grid scrolling toward the horizon.

Retro grid

Installation

$ pnpm dlx shadcn@latest add @synccn/retro-grid

First time in this project? Connect synccn with one command.

Usage

import { RetroGrid } from "@/components/ui/particles";<div className="relative"><RetroGrid /></div>

API reference

Generated from the component's TypeScript types, so it always matches the code.

RetroGrid

Perspective grid receding to the horizon, scrolling slowly.

  • angle
    number

    Default 65

    Tilt of the grid in degrees.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • Respects the reduced motion setting