Skip to Content
Kokonut UI

AI-04AI

AI Text Loading

AI thinking text with a soft wave through the letters and words that swap letter by letter.

Install with
motion

PROSlash Command Menu and more like it are in Kokonut UI Pro

Installation

AI Text Loading is a free, open-source React component in the Kokonut UI AI collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/ai-text-loading.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/ai-text-loading

Or add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/ai-text-loading.tsx.

npm install motion

Usage

import AITextLoading from "@/components/kokonutui/ai-text-loading";

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

Props

texts
string[]Default [ "Thinking...", "Processing...", "Analyzing...…
className
string

Extra classes for the root element.

interval
numberDefault 1500
label
stringDefault "Loading"

Stable status for screen readers; the cycling words are hidden from them.

showElapsed
booleanDefault false

Show the seconds spent so far next to the words.

Dependencies

NeedsVersionComes from
motion^12.23.25npm, installed by the CLI
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.