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
Open ↗

Installation

Tokens guide →

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

npx bigbullui add ticket-fold

Or install the full npm package:

npm install bigbullui

Usage

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 helper

Zero 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 />
PropTypeDescription
eventNamestringConfigures event name. (Default: "NEO-TOKYO SOUNDSYSTEM")
subtitlestringSupporting secondary heading text. (Default: "ANNUAL ELECTRONIC MUSIC SPECTACULAR")
tierstringConfigures tier. (Default: "VIP ALL-ACCESS")
serialstringConfigures serial. (Default: "NO. 8942-X")
datestringConfigures date. (Default: "2026-10-14")
timestringConfigures time. (Default: "21:00 CEST")
venuestringConfigures venue. (Default: "ARENA 07 · BERLIN TERMINAL")
seatInfoTicketFoldSeatInfoConfigures seat info.
holderNamestringConfigures holder name. (Default: "K. ARMITAGE // CORP-ID 7701")
barcodeValuestringConfigures barcode value. (Default: "BB-8942-X-2026")
admitCountstringConfigures admit count. (Default: "ADMIT ONE PASS")
unfoldedbooleanToggles unfolded.
defaultUnfoldedbooleanToggles default unfolded. (Default: false)
onFoldChange(unfolded: boolean) => voidCallback invoked on fold change.
tornbooleanToggles torn.
defaultTornbooleanToggles default torn. (Default: false)
onTear() => voidCallback invoked on tear.
allowTearbooleanToggles allow tear. (Default: true)
classNamestringOptional Tailwind or custom CSS classes merged with component styles.