Componentticket-stub3.38 KB gzipZero dependencies
Ticket Fold
3D accordion fold pass that unfolds with smooth perspective rotation and tear-away slip.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add ticket-foldOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { TicketFold } from "@/components/ui/ticket-fold"; <TicketFold eventName="HYPERDRIVE LIVE" tier="VIP" date="OCT 14, 2026" />Source code
ticket-fold.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxticket-fold.tsx512 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface TicketFoldSeatInfo { section?: string; row?: string; seat?: string; gate?: string;} export interface TicketFoldProps extends React.HTMLAttributes<HTMLDivElement> { eventName?: string; subtitle?: string; tier?: string; serial?: string; date?: string;Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { TicketFold } from "@/components/ui/ticket-fold"; <TicketFold />| Prop | Type | Description |
|---|---|---|
| eventName | string | Configures event name. (Default: "NEO-TOKYO SOUNDSYSTEM") |
| subtitle | string | Supporting secondary heading text. (Default: "ANNUAL ELECTRONIC MUSIC SPECTACULAR") |
| tier | string | Configures tier. (Default: "VIP ALL-ACCESS") |
| serial | string | Configures serial. (Default: "NO. 8942-X") |
| date | string | Configures date. (Default: "2026-10-14") |
| time | string | Configures time. (Default: "21:00 CEST") |
| venue | string | Configures venue. (Default: "ARENA 07 · BERLIN TERMINAL") |
| seatInfo | TicketFoldSeatInfo | Configures seat info. |
| holderName | string | Configures holder name. (Default: "K. ARMITAGE // CORP-ID 7701") |
| barcodeValue | string | Configures barcode value. (Default: "BB-8942-X-2026") |
| admitCount | string | Configures admit count. (Default: "ADMIT ONE PASS") |
| unfolded | boolean | Toggles unfolded. |
| defaultUnfolded | boolean | Toggles default unfolded. (Default: false) |
| onFoldChange | (unfolded: boolean) => void | Callback invoked on fold change. |
| torn | boolean | Toggles torn. |
| defaultTorn | boolean | Toggles default torn. (Default: false) |
| onTear | () => void | Callback invoked on tear. |
| allowTear | boolean | Toggles allow tear. (Default: true) |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |