# Grid Lines

Grid Lines 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

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.

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

## Install

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

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/grid-lines.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import GridLines from '@/components/aicanvas/grid-lines'

<GridLines />
```

It takes no props.

## About

Grid Lines connects a dot grid with thin segments and waits for the cursor to enter. When it does, a radial pulse fires from your pointer and ripples outward, lighting both dots and connecting strokes as it spreads. The whole composition is drawn into a single 2D canvas with Tailwind providing layout for the container around it. It works well as a hero backdrop where a single interaction signals "this site is alive", or as a section break on a long marketing page.

Use cases: Hero section, Marketing site, Editorial.

## Source

Install with the command above to get the source.

## Remix prompt

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

## Related

- [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.
- [Noise Field](https://aicanvas.me/components/noise-field.md): An animated flow field background. A grid of arrows driven by layered sine-wave noise drifts like wind. Hover and they turn to point at your cursor.
- [Distortion Grid](https://aicanvas.me/components/distortion-grid.md): An animated grid background. Thin lines undulate in slow sweeping waves, and hovering repels the grid fabric outward from your cursor.
- [Grain Background](https://aicanvas.me/components/noise-bg.md): A grain background of randomly scattered dots. Hover to illuminate them with a soft Gaussian glow and organic connection lines.
- [X Grid](https://aicanvas.me/components/x-grid.md): An animated X grid background. Marks illuminate and connect to their neighbors with constellation lines as your cursor passes.
