Booting Environment...

Ambient Grid

A playful, high-performance background component that renders a subtle grid with interactive ambient glows that react to mouse movement.

Installation

npx raya-ui@latest add ambient-grid

File Structure

your-project
components
ui
ambient-grid
AmbientGrid.vue

API Reference

Props

gridSize
number
24

The size of the background grid cells in pixels.

interactive
boolean
true

When true, the primary glow (color1) dynamically follows the user's mouse cursor.

color1
string
"#a855f7"

The color of the primary glow point.

color2
string
"#3b82f6"

The color of the secondary static ambient glow.

Interactive Grid

The background reacts to your movements and configuration.

Settings
Glow follows the cursor position.
30px