A ui component.
Install
Add it to your project
Run this in a project set up for shadcn/ui. It writes the files and installs the npm packages.
First time: connect the Infinity UI registry
- Create a personal token on your Tokens page.
- Put it in
.env.localasINFINITYUI_TOKEN. - Add the registry to
components.json:
{
"registries": {
"@infinityui": {
"url": "https://infinityui.io/r/{name}.json",
"headers": {
"Authorization": "Bearer ${INFINITYUI_TOKEN}"
}
}
}
}Using Claude Code, Codex, Cursor, Lovable or v0? See CLI & MCP for a setup prompt.
npm packages it adds
- motion
Code
import Typewriter from "@/components/fancy/text/typewriter"
export default function Preview() {
return (
<div className="w-dvw h-dvh md:text-3xl lg:text-4xl sm:text-2xl text-xl flex flex-row items-start justify-start bg-white text-foreground dark:text-muted font-normal overflow-hidden p-16 pt-48">
<p className="whitespace-pre-wrap">
<span>{"We're born 🌞 to "}</span>
<Typewriter
text={[
"experience",
"dance",
"love",
"be alive",
"create things that make the world a better place",
]}
speed={70}
className="text-yellow-500 text-pretty"
waitTime={1500}
deleteSpeed={40}
cursorChar={"_"}
/>
</p>
</div>
)
}




























