A row of social links sharing one preview card. One panel owns the card surface and resizes itself between profiles while the contents cross-fade inside, so moving between icons reads as a single card growing and travelling. The GitHub card pulls a live contribution graph.
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 { SocialPreviewDock } from "@/registry/ruixenui/social-preview-dock";
export default function SocialPreviewDockDemo() {
return (
<div className="flex min-h-[480px] w-full items-end justify-center px-6 pb-16">
<SocialPreviewDock
email="govindalapudisrinath@gmail.com"
profile={{
username: "SriSomanaath",
xHandle: "SriNath693",
name: "Sri Somanaath",
headline: "AI Software Engineer",
location: "Bengaluru, India",
bio: "Engineer",
links: {
github: "https://github.com/SriSomanaath",
linkedin: "https://www.linkedin.com/in/srisomanaath-g693/",
x: "https://x.com/SriNath693",
},
}}
/* Art direction per card. Leave this off and the banners run on theme
tokens instead, following whatever palette the site is using. */
bannerColors={{
linkedin: ["#e0f2fe", "#7dd3fc", "#3b82f6", "#1d4ed8"],
x: ["#fde68a", "#fbbf24", "#fb923c", "#fb7185"],
}}
/>
</div>
);
}
































