# X Grid

X Grid is a free, MIT-licensed standalone component from AI Canvas (https://aicanvas.me): it belongs to no design system and works in any React + Tailwind app. Index of every component and install setup: https://aicanvas.me/llms.txt

An animated X grid background. Marks illuminate and connect to their neighbors with constellation lines as your cursor passes.

- Category: Backgrounds
- Built with: Canvas, Tailwind CSS
- License: MIT
- Page: https://aicanvas.me/components/x-grid

## Install

```bash
npx shadcn@latest add @aicanvas/x-grid
```

Needs a free AI Canvas account. Signed out, the command exits 0 but writes a placeholder (an `AccountRequired` notice); check for it before reporting success. Token setup: the Install section of https://aicanvas.me/llms.txt.

AI agents can also get its install command from the read-only AI Canvas MCP server (`npx -y @aicanvas/mcp`) and run it. Setup: https://aicanvas.me/mcp

## Use it

It installs to `components/aicanvas/x-grid.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import XGrid from '@/components/aicanvas/x-grid'

<XGrid />
```

It takes no props.

## About

X Grid is a canvas of small × marks arranged on a regular lattice. On hover, the ones nearest your cursor brighten and reach toward each other with thin constellation lines, briefly stitching the grid into a network. Everything is drawn into a single 2D canvas with Tailwind controlling layout, so the GPU and DOM both stay quiet. It is a strong hero backdrop or marketing-page filler when you want geometric texture that responds to attention without overwhelming foreground content.

Use cases: Hero section, Marketing site, Empty state.

## Source

Install with the command above to get the source.

## Remix prompt

Only when the user wants X Grid rebuilt from scratch instead of installed: its remix prompt is in the Remix panel at https://aicanvas.me/components/x-grid.

## Related

- [Grid Lines](https://aicanvas.me/components/grid-lines.md): A grid background of dots connected by thin lines. The cursor lights a radial glow and bulges the grid outward like a lens as it moves.
- [Bubble Field](https://aicanvas.me/components/bubble-field.md): An animated bubble background. A monochrome grid of outline circles bursts near the cursor, expanding and fading, then reforming.
- [Dot Grid](https://aicanvas.me/components/dot-grid.md): An animated dot grid background. Hovering lights up nearby dots with a smooth glow and an organic fade.
- [Wireframe Globe](https://aicanvas.me/components/sphere-lines.md): An animated wireframe globe background. A narrow wave band drifts slowly across the surface, and hovering ripples the lines under your cursor.
- [Magnetic Dots](https://aicanvas.me/components/magnetic-dots.md): An interactive dot background. A dense grid of dots is magnetically pulled toward your cursor, snapping back with an elastic bounce.
