Skip to content

    Browse components

    Text Generate

    Words stream in one by one out of a soft blur, like a model typing its answer, with an optional glowing caret.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/text-generate

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/text-generate.json

    Usage

    import { TextGenerate } from "@/components/ui/text-generate";
    
    <TextGenerate text="Here is a calm, focused plan for your launch week…" stagger={70} />

    Props

    PropTypeDefaultDescription
    textstring"Sure! Here is a calm, focused plan for your launch week: ship the smallest thing that works, listen closely to the first ten users, and polish only what they actually touch."Text to stream in.
    staggernumber70Delay between words, in ms.
    durationnumber700Fade/unblur duration of each word, in ms.
    blurnumber10Starting blur of each word, in px.
    caretbooleantrueShow a caret that follows the stream and blinks when done.
    caretColorstring"#a3e635"Caret color.
    classNamestring—Extra classes for the root element.