Componentticket-stub0.57 KB gzipZero dependencies

Stamp Card

Loyalty punch card with stamped circles and reward row.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add stamp-card

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { StampCard } from "@/components/ui/stamp-card"; <StampCard />

Source code

stamp-card.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxstamp-card.tsx47 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface StampCardProps extends React.HTMLAttributes<HTMLElement> {  text?: string;  subtext?: string;  tone?: "accent" | "primary" | "destructive";  className?: string;} export function StampCard({  text = "ADMITTED",  subtext = "OFFICIAL STUB",  tone = "accent",  className, ...props}: StampCardProps) {

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { StampCard } from "@/components/ui/stamp-card"; <StampCard />
PropTypeDescription
textstringConfigures text. (Default: "ADMITTED")
subtextstringConfigures subtext. (Default: "OFFICIAL STUB")
tone"accent" | "primary" | "destructive"Semantic surface or emphasis tone. (Default: "accent")
classNamestringOptional Tailwind or custom CSS classes merged with component styles.