Typewriter-style terminal text loop with blinking cursor and optional prefix.
npx shadcn@latest add https://refinery.abhii.me/r/terminal-text.json| Name | Type | Description |
|---|---|---|
| texts | string[] | List of strings to type through in sequence. |
| className | string | Additional CSS classes for the wrapper. |
| prefix | string | Optional prefix shown before the typed text, e.g. '$ ' or '> '. Default is no prefix. |
I track the current phrase, visible character length, and deleting state, then use timed updates to simulate typing, pausing, and deleting. The cursor is a Motion element with a simple opacity blink. You can pass your own phrases and prefix, or let it fall back to the built-in defaults for a quick CLI-style accent.