Components/GretTech/Skewed Grid

Skewed Grid

A hero background of two grid planes tilted in 3D so they cross behind your content, stretching the cells into skewed rectangles that drift toward you.

v0

Installation

Full Setup guide

Install the component automatically via Shadcn CLI.

npx shadcn@latest add https://www.grettech.com/api/registry/skewed-grid

Props

PropTypeDefaultDescription
children
React.ReactNode-Content shown over the grid, centred.
cellSize
number40Size of one grid cell, in pixels.
angle
number45Tilt of each plane, in degrees.
perspective
number1000Camera distance; lower gives a stronger, wider-angle perspective.
lineColor
string-Line colour; defaults to the text colour, so it follows the theme.
lineOpacity
number0.1Strength of the lines, from 0 to 1.
speed
number0Seconds for the grid to drift one cell toward you; 0 holds it still.
glowColor
string-A soft glow where the two planes cross, behind the content.
fadeEdges
booleantrueFade the grid out at the left and right edges too.
className
string-Extra classes for the wrapper.