Componentticket-stub1.07 KB gzipZero dependencies

Ticket Card

Complete admission ticket with notched edges and seat details.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add ticket-card

Or install the full npm package:

npm install bigbullui

Usage

tsx7 lines
import { TicketCard } from "@/components/ui/ticket-card"; <TicketCard  eventName="BIGBULL MAIN STAGE"  status="valid"  price="$45.00"/>

Source code

ticket-card.tsx + 1 helper

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

tsxticket-card.tsx141 lines
import * as React from "react";import { cn } from "./lib/utils"; export interface TicketCardProps extends React.HTMLAttributes<HTMLDivElement> {  serial?: string;  eventName?: string;  admitCount?: string;  seatInfo?: { row?: string; seat?: string; section?: string; gate?: string };  date?: string;  time?: string;  price?: string;  barcodeValue?: string;  status?: "admitted" | "valid" | "void";  className?: string;} export function TicketCard({  serial = "NO. 08421",

Props

Interactive Prop Playground

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

tsx3 lines
import { TicketCard } from "@/components/ui/ticket-card"; <TicketCard />
PropTypeDescription
serialstringConfigures serial. (Default: "NO. 08421")
eventNamestringConfigures event name. (Default: "BIGBULL MAIN STAGE")
admitCountstringConfigures admit count. (Default: "ADMIT ONE")
seatInfo{ row?: string; seat?: string; section?: string; gate?: string }Configures seat info.
datestringConfigures date. (Default: "2026-09-05")
timestringConfigures time. (Default: "20:00")
pricestringConfigures price. (Default: "$45.00")
barcodeValuestringConfigures barcode value. (Default: "BB84210")
status"admitted" | "valid" | "void"Semantic status indicator. (Default: "valid")
classNamestringOptional Tailwind or custom CSS classes merged with component styles.