Emirhan Albayrak

Coin Plan Picker

Pricing

About

3D pricing plan picker with bronze, silver and gold coins rendered in three.js. Click, swipe or use arrow keys to bring a coin forward; it spins on select and wobbles on hover. Embossed emblem from any SVG path, neon glow, monthly/yearly prices and feature list.

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

Code

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

Usage.tsx

import * as React from "react";
import { ChartLineUp, ChatsCircle, HardDrives, Headset, Infinity as InfinityIcon, Lightning, ShieldCheck, Users } from "@phosphor-icons/react";
import { CoinPlanPicker, type CoinPlan } from "@/components/ui/coin-plan-picker";

// Any SVG path works as the 3D emblem. Paste your own logo path here.
const EMBLEMS = [
  { name: "Sparkle", d: "M12 1.5c.7 5.8 4.7 9.8 10.5 10.5C16.7 12.7 12.7 16.7 12 22.5 11.3 16.7 7.3 12.7 1.5 12 7.3 11.3 11.3 7.3 12 1.5Z" },
  { name: "Bolt", d: "M13.6 1.5 4 13.6h6.1L9 22.5l10.2-12.6h-6.4L13.6 1.5Z" },
  { name: "Crown", d: "M2 7.5l5.2 4.2L12 4l4.8 7.7L22 7.5l-2.3 12H4.3L2 7.5Z" },
];

const icon = (node: React.ReactNode) => node;

const PLANS: CoinPlan[] = [
  {
    id: "bronze",
    name: "Bronze",
    price: 9,
    metal: "bronze",
    description: "Everything you need to get started.",
    features: [
      { label: "1 workspace", icon: icon(<Users weight="fill" />) },
      { label: "5 GB storage", icon: icon(<HardDrives weight="fill" />) },
      { label: "Community support", icon: icon(<ChatsCircle weight="fill" />) },
    ],
  },
  {
    id: "silver",
    name: "Silver",
    price: 19,
    metal: "silver",
    badge: "Most popular",
    description: "For growing teams that ship every week.",
    features: [
      { label: "10 workspaces", icon: icon(<Users weight="fill" />) },
      { label: "100 GB storage", icon: icon(<HardDrives weight="fill" />) },
      { label: "Priority support", icon: icon(<Lightning weight="fill" />) },
      { label: "Advanced analytics", icon: icon(<ChartLineUp weight="fill" />) },
    ],
  },
  {
    id: "gold",
    name: "Gold",
    price: 39,
    metal: "gold",
    description: "Unlimited everything, with a human on call.",
    features: [
      { label: "Unlimited workspaces", icon: icon(<InfinityIcon weight="bold" />) },
      { label: "1 TB storage", icon: icon(<HardDrives weight="fill" />) },
      { label: "24/7 dedicated support", icon: icon(<Headset weight="fill" />) },
      { label: "SSO and audit logs", icon: icon(<ShieldCheck weight="fill" />) },
    ],
  },
];

export default function DemoDefault() {
  const [emblem, setEmblem] = React.useState(0);
  return (
    <div className="flex min-h-[860px] w-full flex-col items-center justify-center gap-5 bg-background px-3 py-8">
      <CoinPlanPicker plans={PLANS} emblem={EMBLEMS[emblem].d} />
      <div className="flex items-center gap-2 text-[12.5px] text-muted-foreground">
        <span>Emblem</span>
        {EMBLEMS.map((item, i) => (
          <button
            key={item.name}
            type="button"
            aria-pressed={i === emblem}
            onClick={() => setEmblem(i)}
            className={
              i === emblem
                ? "flex items-center gap-1.5 rounded-full bg-foreground px-3 py-1.5 font-medium text-background"
                : "flex items-center gap-1.5 rounded-full bg-muted px-3 py-1.5 font-medium transition-colors hover:text-foreground"
            }
          >
            <svg viewBox="0 0 24 24" className="h-3.5 w-3.5" fill="currentColor" aria-hidden>
              <path d={item.d} />
            </svg>
            {item.name}
          </button>
        ))}
      </div>
    </div>
  );
}

Dependencies

More by Emirhan Albayrak

View all
  • Vitals Widget

    Vitals Widget

    11
  • Glow Widgets

    Glow Widgets

    6
  • Animated Bento Features

    Animated Bento Features

    6
  • Coin Rack Selector

    Coin Rack Selector

    4
  • Storage Folder Card

    Storage Folder Card

    1
  • Hand Pull Refresh

    Hand Pull Refresh

More in Pricing

View all
  • Pricing Section

    Pricing Section

    715
  • Toggle Pricing Cards

    Toggle Pricing Cards

    101
  • Pricing Card

    Pricing Card

    582
  • pricing section

    pricing section

    183
  • Pricing Section

    Pricing Section

    216
  • Review Stack Pricing

    Review Stack Pricing

    6
  • Single Plan Pricing Card

    Single Plan Pricing Card

    29
  • Toggleable Add-on Pricing

    Toggleable Add-on Pricing

    211