Dynamic Text - React Component | Kokonut UI

Dynamic Text

Morphing text where shared letters travel, old ones fall and new ones land, with decode and cycle modes.

Install with

npx shadcn@latest add https://kokonutui.com/r/dynamic-text.json

Installation

Dynamic 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/dynamic-text.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/dynamic-text

Usage

import DynamicText from "@/components/kokonutui/dynamic-text";

export default function Example() {
  return <DynamicText />;
}

Props

mode

text

words

interval

loop

onComplete

className

DynamicTextMode

type DynamicTextMode = "morph" | "decode" | "cycle";

Greeting

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.