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
- lodash
- motion
Code
import VariableFontHoverByLetter from "@/components/fancy/text/variable-font-hover-by-letter"
export default function Preview() {
return (
<div className="w-dvw h-dvh rounded-lg sm:text-xl xs:text-sm md:text-2xl xl:text-3xl flex flex-col items-center justify-center font-overused-grotesk bg-white text-foreground dark:text-muted">
<div className="w-full justify-start items-center p-6 sm:p-8 md:p-12 lg:p-16">
<div className="w-3/4">
<h2>OPEN ROLES ✽</h2>
<ul className="flex flex-col space-y-1 mt-6 md:mt-12 h-full cursor-pointer">
<VariableFontHoverByLetter
label="DESIGN ENGINEER (US)"
staggerDuration={0.03}
fromFontVariationSettings="'wght' 400, 'slnt' 0"
toFontVariationSettings="'wght' 900, 'slnt' -10"
/>
<VariableFontHoverByLetter
label="PRODUCT DESIGNER (US/UK)"
staggerDuration={0.0}
transition={{ duration: 1, type: "spring" }}
fromFontVariationSettings="'wght' 400, 'slnt' -10"
toFontVariationSettings="'wght' 900, 'slnt' -10"
/>
<VariableFontHoverByLetter
label="ENGINEERING MANAGER (US)"
fromFontVariationSettings="'wght' 400, 'slnt' 0"
toFontVariationSettings="'wght' 900, 'slnt' -10"
staggerFrom={"last"}
/>
<VariableFontHoverByLetter
label="SALES ENGINEER (US)"
staggerFrom={"center"}
fromFontVariationSettings="'wght' 400, 'slnt' 0"
toFontVariationSettings="'wght' 900, 'slnt' -10"
/>
</ul>
</div>
</div>
</div>
)
}




























