Grid Background

CSS-based grid, dot, or cross pattern with optional mouse-following radial mask.

Import

import { GridBackground } from "@igorao79/uivix";

Playground

Move your mouse over the area

40px
300px

Props

PropTypeDefaultDescription
variant"grid" | "dots" | "cross""grid"Pattern style
sizenumber40Grid cell size in px
colorstring"rgba(255,255,255,0.08)"Line/dot color
opacitynumber1Pattern opacity
followMousebooleanfalseEnable mouse-following radial mask
maskRadiusnumber300Radial mask radius in px
classNamestringfixed inset-0 ...CSS class