TX-03Texts
Glitch Text
Flat text that cuts into hard-shifted bands with a thin red/cyan split, on idle, hover or text change.
PROKinetic Type Hero and more like it are in Kokonut UI Pro
Installation
Glitch Text is a free, open-source React component in the Kokonut UI Texts collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/glitch-text.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/glitch-textUsage
import GlitchText from "@/components/kokonutui/glitch-text";
export default function Example() {
return <GlitchText />;
}Props
textstringDefault "Signal Text"Text to render. Changing it glitches over to the new text.
triggerGlitchTextTriggerDefault "idle"What starts a burst. Defaults to idle.
intensityGlitchTextIntensityDefault "medium"Band count, displacement and channel split. Defaults to medium.
accentstringDefault built-inColor of the leading channel during a burst. The other one is cyan.
classNamestringExtra classes for the root element.
as"span" | "div" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6"Default "span"Root element. A span by default, so it also fits inside a heading.
GlitchTextTrigger
- idle: a burst every 4-9s while on screen, plus on text changes. - hover: a burst on pointer enter (or tap), plus on text changes. - change: only text changes glitch; the burst is the transition.
type GlitchTextTrigger = "idle" | "hover" | "change";GlitchTextIntensity
type GlitchTextIntensity = "subtle" | "medium" | "strong";Dependencies
| Needs | Version | Comes from |
|---|---|---|
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.

