An interactive card with a holographic gradient and mouse‑reactive tilt effect.
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
- react
- motion
Code
import HolographicCard from "@/registry/eldoraui/holographic-card"
export default function HolographicCardDemo() {
return (
<div className="flex min-h-screen flex-col items-center justify-center gap-12 overflow-hidden px-6 py-12">
<div className="pointer-events-none absolute inset-0 z-[-1]" />
{/* Card 1 - Default */}
<HolographicCard
width={316}
height={448}
imageSrc="https://github.com/Northstrix/my-portfolio/blob/main/public/fourth-playground-card-image.jpg?raw=true"
topText="旅"
bottomText="創世"
borderWidth={1}
borderColor="rgba(255,255,255,0.1)"
topTextHoverColor="#FBE75F"
bottomTextHoverColor="#FBE75F"
/>
</div>
)
}
































