TX-06Texts
Cradle Text
A headline hung like a Newton's cradle, so a knock on one letter clacks through the word, built with React and pendulum physics.
no extra packages
PROKinetic Type Hero and more like it are in Kokonut UI Pro
Installation
Cradle 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/cradle-text.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/cradle-textUsage
import CradleText from "@/components/kokonutui/cradle-text";
export default function Example() {
return <CradleText />;
}Props
textstringDefault "Momentum"The line of letters hung from the rail. Keep it to one line.
classNamestringExtra classes for the root element.
introbooleanDefault trueLift the first letter and let it go once, the first time it's seen.
bouncenumberDefault 0.97How much speed a collision keeps, 0 to 1. Steel is about 0.95.
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.

