Skip to content

    Browse components

    Typewriter

    Types and deletes a list of phrases with a blinking cursor.

    Build faster., Ship prettier., Copy. Paste. Done.
    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/typewriter

    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/typewriter.json

    Usage

    import { Typewriter } from "@/components/ui/typewriter";
    
    <Typewriter words={["Build faster.", "Ship prettier."]} />

    Props

    PropTypeDefaultDescription
    wordsstring[]["Build faster.","Ship prettier.","Copy. Paste. Done."]Phrases to type.
    typeSpeednumber70Ms per typed character.
    deleteSpeednumber40Ms per deleted character.
    pausenumber1500Ms to hold a finished phrase.
    cursorstring"|"Cursor glyph.
    classNamestring—Extra classes for the root element.