Docs / Components / Dot Grid Background

Dot Grid Background

A premium fullscreen background inspired by the Miracle UI. Features a dense grid of randomly blinking dots with an interactive cursor-follow lighting effect.

Dependencies

Install the following dependencies to use this component:

1npm install clsx tailwind-merge

Installation

Run the following command in your terminal to add the component to your project:

1npx rankflow-ui@latest add dot-grid-background

Props Reference

PropTypeDefaultDescription
dotSizenumber1.2The radius of each dot in pixels.
gapnumber12The grid spacing between dots (lower = higher density).
blinkProbabilitynumber0.005Chance of a dot starting to blink [0, 1].
blinkSpeednumber0.05Interpolation speed of the opacity transition.
cursorRadiusnumber100Radius around the cursor where dots light up.
cursorStrengthnumber0.5Maximum additional opacity from cursor proximity.
classNamestring''Additional CSS classes.