Componentticket-stub1.07 KB gzipZero dependencies
Ticket Card
Complete admission ticket with notched edges and seat details.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add ticket-cardOr install the full npm package:
npm install bigbulluiUsage
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 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| serial | string | Configures serial. (Default: "NO. 08421") |
| eventName | string | Configures event name. (Default: "BIGBULL MAIN STAGE") |
| admitCount | string | Configures admit count. (Default: "ADMIT ONE") |
| seatInfo | { row?: string; seat?: string; section?: string; gate?: string } | Configures seat info. |
| date | string | Configures date. (Default: "2026-09-05") |
| time | string | Configures time. (Default: "20:00") |
| price | string | Configures price. (Default: "$45.00") |
| barcodeValue | string | Configures barcode value. (Default: "BB84210") |
| status | "admitted" | "valid" | "void" | Semantic status indicator. (Default: "valid") |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |