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 { DumbbellIcon, LibraryIcon, PlaneIcon, SixteenthNotesIcon } 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 PassDetail({ label, value }: { label: string; value: string }) {
return (
<div className="flex flex-col gap-1.5">
<span className="text-[2.75cqw] leading-none tracking-wider opacity-70">
{label}
</span>
<span className="text-[5cqw] leading-none font-medium tracking-tight">
{value}
</span>
</div>
)
}
export default function WalletPassesDemo() {
return (
<Wallet>
<WalletCards>
<WalletCard className="bg-muted text-foreground inset-ring-foreground/10">
<WalletCardHeader>
<WalletCardTitle>Library</WalletCardTitle>
<WalletCardDescription>
Member
<LibraryIcon strokeWidth={1.5} />
</WalletCardDescription>
</WalletCardHeader>
<WalletCardContent className="flex justify-between gap-4">
<PassDetail label="Branch" value="Thanh My Tay" />
<PassDetail label="Due back" value="Sep 2" />
</WalletCardContent>
</WalletCard>
<WalletCard className="bg-secondary text-secondary-foreground inset-ring-foreground/10">
<WalletCardHeader>
<WalletCardTitle>Gym</WalletCardTitle>
<WalletCardDescription>
Yearly
<DumbbellIcon strokeWidth={1.5} />
</WalletCardDescription>
</WalletCardHeader>
<WalletCardContent className="flex justify-between gap-4">
<PassDetail label="Locker" value="A-50" />
<PassDetail label="Renews" value="Apr 30" />
</WalletCardContent>
</WalletCard>
<WalletCard className="bg-muted-foreground text-background">
<WalletCardHeader>
<WalletCardTitle>Concert</WalletCardTitle>
<WalletCardDescription>
Row A
<SixteenthNotesIcon strokeWidth={1.5} />
</WalletCardDescription>
</WalletCardHeader>
<WalletCardContent className="flex justify-between gap-4">
<PassDetail label="Doors" value="19:45" />
<PassDetail label="Seat" value="A-80" />
</WalletCardContent>
</WalletCard>
<WalletCard className="bg-primary text-primary-foreground">
<WalletCardHeader>
<WalletCardTitle>Boarding pass</WalletCardTitle>
<WalletCardDescription>
VN 98
<PlaneIcon strokeWidth={1.5} />
</WalletCardDescription>
</WalletCardHeader>
<WalletCardContent className="flex justify-between gap-4">
<PassDetail label="Route" value="SGN to SFO" />
<PassDetail label="Gate" value="12" />
</WalletCardContent>
</WalletCard>
</WalletCards>
<WalletPocket>
<WalletLabel>
<ChanhDaiMark />
Passes
</WalletLabel>
</WalletPocket>
</Wallet>
)
}







