uibrik

Typewriter

Preview

Customize

Key delay35ms
Key jitter70ms
Space pause90ms
Text size48px

Usage

import { Typewriter } from "@/components/uibrik/typewriter/typewriter";

<Typewriter play={play} />

Installation

npx shadcn@latest add https://uibrik.com/r/typewriter.json
Adds the files to components/uibrik/typewriter and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/typewriter.

Props

Typewriter
text
Type string
"Typing with a human hand"
The copy to type. The scripted typo only plays for the default sentence.
keyDelay
Type number
35
Shortest gap between keystrokes.
keyJitter
Type number
70
Random extra per keystroke.
spacePause
Type number
90
Extra pause after a space.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.