# Mesh Gradient Background

Living gradient where soft color blobs drift on noise-driven coordinates.

> 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/mesh-gradient-bg
```

<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 { MeshGradientBackground } from "@/components/framecn/mesh-gradient-bg";
```

```tsx
<MeshGradientBg />
```

## API Reference

### MeshGradientBg

| Prop               | Type       | Default                                        |
| ------------------ | ---------- | ---------------------------------------------- |
| `colors`           | `string[]` | `["#ff0080", "#7928ca", "#00d4ff", "#ffb800"]` |
| `speed`            | `number`   | `1`                                            |
| `blur`             | `number`   | `80`                                           |
| `background`       | `string`   | `"#0a0a0a"`                                    |
| `className`        | `string`   | `-`                                            |
| `fps`              | `number`   | `30`                                           |
| `durationInFrames` | `number`   | `150`                                          |
| `width`            | `number`   | `1280`                                         |
| `height`           | `number`   | `720`                                          |

## Notes

  Color blobs drift on noise-driven coordinates creating a living, organic
  gradient effect. Great for backgrounds.