# Matrix Decode

Random characters scramble and resolve into the target string.

> 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/matrix-decode
```

<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 { MatrixDecode } from "@/components/framecn/matrix-decode";
```

```tsx
<MatrixDecode />
```

## API Reference

### MatrixDecode

| Prop               | Type     | Default                  |
| ------------------ | -------- | ------------------------ | --- |
| `text`             | `string` | `"DECRYPTED"`            |
| `charset`          | `string` | `"!@#$%^&\*()\_+-=<>?/\\ | "`  |
| `fontSize`         | `number` | `72`                     |
| `color`            | `string` | `"#22c55e"`              |
| `fontWeight`       | `number` | `600`                    |
| `revealDuration`   | `number` | `60`                     |
| `speed`            | `number` | `1`                      |
| `fps`              | `number` | `30`                     |
| `durationInFrames` | `number` | `90`                     |
| `width`            | `number` | `1280`                   |
| `height`           | `number` | `720`                    |
| `className`        | `string` | `-`                      |

## Notes

  The decode effect uses random characters from a Matrix-style character set
  that gradually resolve to the target text. Longer texts take more time to
  fully resolve.