Emirhan Albayrak

Coin Rack Selector

Navigation 1

About

Real-time 3D rack of chrome coins. The selected coin rises out of its glowing neon slot and turns to face you; click it to open its link. Drag to scroll, autoplay and keyboard support. Built with three.js.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Coin Rack Selector to your project and fits it to your theme.

Code

How Coin Rack Selector is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { CoinRackSelector, type CoinItem } from "@/components/ui/coin-rack-selector";

const svg = (paths: string) =>
  `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">${paths}</svg>`;

const items: CoinItem[] = [
  {
    id: "design",
    label: "Design",
    color: "#F97316",
    href: "#design",
    icon: svg(
      '<path d="M12 19l7-7 3 3-7 7-3-3z"/><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"/><circle cx="11" cy="11" r="2"/>'
    ),
  },
  {
    id: "code",
    label: "Code",
    color: "#16A34A",
    href: "#code",
    icon: svg('<path d="M16 18l6-6-6-6M8 6l-6 6 6 6"/>'),
  },
  {
    id: "music",
    label: "Music",
    color: "#DC2626",
    href: "#music",
    icon: svg('<path d="M9 18V5l12-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/>'),
  },
  {
    id: "wallet",
    label: "Wallet",
    color: "#F7931A",
    href: "#wallet",
    icon: svg(
      '<path d="M20 12V8H6a2 2 0 0 1 0-4h12v4"/><path d="M4 6v12a2 2 0 0 0 2 2h14v-4"/><path d="M18 12a2 2 0 0 0 0 4h4v-4z"/>'
    ),
  },
  {
    id: "photos",
    label: "Photos",
    color: "#2563EB",
    href: "#photos",
    icon: svg(
      '<rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="M21 15l-5-5L5 21"/>'
    ),
  },
  {
    id: "chat",
    label: "Chat",
    color: "#9333EA",
    href: "#chat",
    icon: svg('<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>'),
  },
  {
    id: "games",
    label: "Games",
    color: "#0891B2",
    href: "#games",
    icon: svg(
      '<path d="M6 12h4M8 10v4M15 13h.01M18 11h.01"/><rect x="2" y="6" width="20" height="12" rx="6"/>'
    ),
  },
];

export default function DemoDefault() {
  return (
    <div className="w-full">
      <CoinRackSelector
        className="min-h-[720px]"
        title="Pick one. Go anywhere."
        items={items}
        defaultIndex={3}
      />
    </div>
  );
}

Dependencies

More by Emirhan Albayrak

View all
  • Vitals Widget

    Vitals Widget

  • Glow Widgets

    Glow Widgets

  • Animated Bento Features

    Animated Bento Features

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    96
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    282
  • Sidebar

    Sidebar

    421
  • Pagination with Ellipsis

    Pagination with Ellipsis

    25
  • Pagination

    Pagination

    3
  • Menu

    Menu

    23
  • Button Breadcrumb

    Button Breadcrumb

    38
  • Tabs like bookmark

    Tabs like bookmark

    87