Componentticket-stub0.57 KB gzipZero dependencies
Stamp Card
Loyalty punch card with stamped circles and reward row.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add stamp-cardOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { StampCard } from "@/components/ui/stamp-card"; <StampCard />Source code
stamp-card.tsx + 1 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| text | string | Configures text. (Default: "ADMITTED") |
| subtext | string | Configures subtext. (Default: "OFFICIAL STUB") |
| tone | "accent" | "primary" | "destructive" | Semantic surface or emphasis tone. (Default: "accent") |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |