Compositions
Core Primitives
Transitions
Typography
Customize
96
700
20
8
6
1
Installation
$ pnpm dlx shadcn@latest add @framecn/rgb-glitch-text
Usage
import { RGBGlitchText } from "@/components/framecn/rgb-glitch-text";<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
RGB channels offset with jitter
The text renders three offset channels (red, green, blue) with randomized horizontal jitter. The intensity controls the offset amount.