nikolas-sapa

Specie Clip

Component

About

A drag-to-clip refund slider drawn as a coin, where the sliced-off sector's true circular-segment area (not the chord's linear position) determines the exact partial refund amount.

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

Code

How Specie Clip is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { SpecieClip } from "@/components/ui/specie-clip";

export default function SpecieClipDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-background p-8">
      <SpecieClip
        defaultChargeAmount={120}
        defaultRefundFrac={0.25}
        onRefund={(refunded, remaining) => {
          console.log(
            `Refunded $${refunded.toFixed(2)}, $${remaining.toFixed(2)} remaining`,
          );
        }}
      />
    </div>
  );
}

More by nikolas-sapa

View all
  • Dye Whorl

    Dye Whorl

    138
  • Countdown Vapor Digits

    Countdown Vapor Digits

    122
  • Hero Burin Hatch

    Hero Burin Hatch

    62
  • Background ASCII Wake

    Background ASCII Wake

    55
  • Hero Text Ring Funnel

    Hero Text Ring Funnel

    48
  • Toast Gravity Stack

    Toast Gravity Stack

    46
  • Hero ASCII Schlieren

    Hero ASCII Schlieren

    45
  • Hero ASCII Reaction Front

    Hero ASCII Reaction Front

    41