# Dynamic Grid

Subtle moving grid or dot pattern background.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).

## Installation

<TabsTrigger value="cli">Command</TabsTrigger>
<TabsTrigger value="manual">Manual</TabsTrigger>

```bash
npx shadcn@latest add @framecn/dynamic-grid
```

<Step>Copy and paste the following code into your project.</Step>

<Step>Update the import paths to match your project setup.</Step>

## Usage

```tsx
import { DynamicGrid } from "@/components/framecn/dynamic-grid";
```

```tsx
<DynamicGrid />
```

## API Reference

### DynamicGrid

| Prop               | Type                                       | Default      |
| ------------------ | ------------------------------------------ | ------------ |
| `cellSize`         | `number`                                   | `40`         |
| `lineColor`        | `string`                                   | `"#27272a"`  |
| `background`       | `string`                                   | `"#0a0a0a"`  |
| `speed`            | `number`                                   | `0.5`        |
| `direction`        | `"diagonal" \| "horizontal" \| "vertical"` | `"diagonal"` |
| `fps`              | `number`                                   | `30`         |
| `durationInFrames` | `number`                                   | `150`        |
| `width`            | `number`                                   | `1280`       |
| `height`           | `number`                                   | `720`        |
| `className`        | `string`                                   | `-`          |

## Notes

  A subtle grid or dot pattern that can animate for depth. Great for tech or
  developer-focused backgrounds.