About
Leather wallet with cards you can peek at and pull out. From chanhdai.com (ncdai), MIT.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Wallet to your project and fits it to your theme.
Code
How Wallet is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { ArrowRightIcon, CoffeeIcon, PlaneIcon, WalletMinimalIcon } from "lucide-react"
import { Wallet, WalletCard, WalletCardContent, WalletCardDescription, WalletCardHeader, WalletCardTitle, WalletCards, WalletLabel, WalletPocket } from "@/components/ui/chanhdai-wallet"
// ---- inlined from src/components/chanhdai-mark.tsx ----
export function ChanhDaiMark(props: React.ComponentProps<"svg">) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 512 256"
aria-hidden
{...props}
>
<path
fill="currentColor"
d="M192 256H64v-64h128v64ZM448 64H320v128h128v64H256V0h192v64ZM64 192H0V64h64v128ZM512 192h-64V64h64v128ZM192 64H64V0h128v64Z"
/>
</svg>
)
}
export function getMarkSVG() {
return `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 256 128"><path fill="currentColor" d="M96 128H32V96h64v32ZM224 32h-64v64h64v32h-96V0h96v32ZM32 96H0V32h32v64ZM256 96h-32V32h32v64ZM96 32H32V0h64v32Z"/></svg>`
}
function Balance({ amount }: { amount: string }) {
return (
<div className="flex flex-col gap-1.5">
<span className="text-[2.75cqw] leading-none tracking-wider opacity-70">
Balance
</span>
<div className="flex items-baseline justify-between gap-4">
<span className="text-[7cqw] leading-none font-medium tracking-tight tabular-nums">
{amount}
</span>
<a
href="#activity"
className="group/activity relative flex items-center gap-1 rounded-sm text-[3cqw] leading-none font-medium outline-offset-4 outline-current after:absolute after:-inset-3 focus-visible:outline-2"
>
Activity
<ArrowRightIcon className="size-[3.5cqw] transition-transform duration-150 ease-out motion-safe:group-hover/activity:translate-x-0.5" />
</a>
</div>
</div>
)
}
export default function WalletDemo() {
return (
<Wallet>
<WalletCards>
<WalletCard className="bg-emerald-800 text-white">
<WalletCardHeader>
<WalletCardTitle>Savings</WalletCardTitle>
<WalletCardDescription>
•••• 0209
<WalletMinimalIcon strokeWidth={1.5} />
</WalletCardDescription>
</WalletCardHeader>
<WalletCardContent>
<Balance amount="$48,210.00" />
</WalletCardContent>
</WalletCard>
<WalletCard className="bg-sky-600 text-white">
<WalletCardHeader>
<WalletCardTitle>Travel</WalletCardTitle>
<WalletCardDescription>
•••• 1945
<PlaneIcon strokeWidth={1.5} />
</WalletCardDescription>
</WalletCardHeader>
<WalletCardContent>
<Balance amount="$6,120.50" />
</WalletCardContent>
</WalletCard>
<WalletCard className="bg-orange-600 text-white">
<WalletCardHeader>
<WalletCardTitle>Everyday</WalletCardTitle>
<WalletCardDescription>
•••• 9999
<CoffeeIcon strokeWidth={1.5} />
</WalletCardDescription>
</WalletCardHeader>
<WalletCardContent>
<Balance amount="$1,284.75" />
</WalletCardContent>
</WalletCard>
</WalletCards>
<WalletPocket>
<WalletLabel>
<ChanhDaiMark />
Wallet
</WalletLabel>
</WalletPocket>
</Wallet>
)
}







