TX-07Texts
Spoiler Text
Inline text hidden under drifting specks, like a chat spoiler. A click blows the specks away from the point you touched.
PROKinetic Type Hero and more like it are in Kokonut UI Pro
Installation
Spoiler 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/spoiler-text.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/spoiler-textUsage
import SpoilerText from "@/components/kokonutui/spoiler-text";
export default function Example() {
return <SpoilerText />;
}Props
classNamestringExtra classes for the root element.
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.

