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
"use client"
import { motion } from "motion/react"
import ScrambleHover from "@/components/fancy/text/scramble-hover"
export default function Preview() {
const models = [
"Llama 3.1 405B Instruct Turbo",
"Llama 3.2 3B Instruct Turbo",
"Gemma 2 27B",
"Mistral 7B Instruct v0.3",
"Mixtral 8x7B Instruct",
"DeepSeek LLM Chat 67B",
"Qwen 2.5 72B Instruct Turbo",
"WizardLM 2 8x22B",
"Nous Hermes 2 Mixtral",
"StripedHyena Nous 7B",
"DBRX Instruct",
"MythoMax L2 13B",
"SOLAR 10.7B Instruct",
"Gemma 2B Instruct",
]
return (
<div className="w-dvw h-dvh flex flex-col justify-center items-end bg-white text-foreground dark:text-muted font-normal overflow-hidden py-20 px-8 sm:px-16 md:px-24 lg:px-32 text-right text-sm sm:text-lg md:text-xl">
{models.map((model, index) => (
<motion.div
layout
key={model}
animate={{ opacity: [0, 1, 1], y: [10, 10, 0] }}
transition={{
duration: 0.1,
ease: "circInOut",
delay: index * 0.05 + 0.5,
times: [0, 0.2, 1],
}}
>
<ScrambleHover
text={model}
scrambleSpeed={50}
maxIterations={8}
useOriginalCharsOnly={true}
className="cursor-pointer"
/>
</motion.div>
))}
</div>
)
}




























