RetroGrid

A full-coverage perspective grid background. Drop it inside any relative container and it tiles seamlessly behind your content.

import { RetroGrid } from "@animui/ui"

Basic

RetroGrid

Perspective grid background.

Custom angle & color

Lower angle values flatten the perspective; change color to match your theme.

Custom angle

angle=45, pink grid

Props

PropTypeDefaultDescription
anglenumber65Perspective tilt of the grid in degrees.
cellSizenumber60Width and height of each grid cell in pixels.
colorstring"rgba(99,102,241,0.2)"Grid line color.
fadeColorstring"white"CSS color used for the bottom-fade gradient overlay.
classNamestringAdditional classes for the container.
© 2026 Steal Shadow. MIT License.Report an issue