A glassmorphic profile card with two variants — full-bleed image overlay and split half layout. Includes follow button, favorite toggle, and verified badge.
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
- lucide-react
Code
"use client";
import { ProfileCard } from "@/registry/ruixenui/profile-card";
export default function ProfileCardDemo() {
return (
<div className="flex flex-col sm:flex-row items-center gap-6 sm:gap-8 w-full sm:justify-center py-8">
{/* Full variant */}
<div className="flex flex-col items-center gap-3 w-[280px] max-w-full">
<ProfileCard
variant="full"
image="/profile-card.jpg"
name="Mia Tanaka"
bio="Visual storyteller blending minimalism with bold aesthetics."
followers={1847}
posts={124}
/>
<span className="text-[11px] font-mono text-neutral-400 dark:text-neutral-600 tracking-wide">
variant="full"
</span>
</div>
{/* Half variant */}
<div className="flex flex-col items-center gap-3 w-[280px] max-w-full">
<ProfileCard
variant="half"
image="/profile-card.jpg"
name="Mia Tanaka"
bio="Visual storyteller blending minimalism with bold aesthetics."
followers={1847}
posts={124}
/>
<span className="text-[11px] font-mono text-neutral-400 dark:text-neutral-600 tracking-wide">
variant="half"
</span>
</div>
</div>
);
}
































