# RGB Glitch Text

Three-channel RGB split with a brief horizontal jitter.

> 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/rgb-glitch-text
```

<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 { RGBGlitchText } from "@/components/framecn/rgb-glitch-text";
```

```tsx
<RGBGlitchText text="value" />
```

## API Reference

### RGBGlitchText

| Prop               | Type     | Default     |
| ------------------ | -------- | ----------- |
| `text`             | `string` | `-`         |
| `fontSize`         | `number` | `96`        |
| `color`            | `string` | `"#171717"` |
| `fontWeight`       | `number` | `700`       |
| `glitchAt`         | `number` | `20`        |
| `glitchDuration`   | `number` | `8`         |
| `intensity`        | `number` | `6`         |
| `seed`             | `string` | `"glitch"`  |
| `speed`            | `number` | `1`         |
| `fps`              | `number` | `30`        |
| `durationInFrames` | `number` | `60`        |
| `className`        | `string` | `-`         |

## Notes

  The text renders three offset channels (red, green, blue) with randomized
  horizontal jitter. The intensity controls the offset amount.