ComponentDeprecatedticket-stub0.64 KB gzipZero dependencies

TicketStubV2

Rip-off event stub whose tear line detaches the stub with rotate-and-fall on tear, plus serial and barcode.

This component is deprecated. Use ticket-card for new projects.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add ticket-stub-v2

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { TicketStubV2 } from "@/components/ui/ticket-stub-v2"; <TicketStubV2 eventName="BIGBULL MAIN STAGE" serial="NO. 08421" />

Source code

ticket-stub-v2.tsx + 1 helper

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

tsxticket-stub-v2.tsx65 lines
import * as React from "react";import { cn } from "./lib/utils"; export interface TicketStubV2Props extends React.HTMLAttributes<HTMLElement> {  event?: string;  date?: string;  serial?: string;  tear?: boolean;  className?: string;} export function TicketStubV2({ event, date, serial, tear = false, className, ...props }: TicketStubV2Props) {  return (    <div      className={cn(        "relative rounded-sm border border-dashed border-border/50 bg-card p-4 motion-reduce:transition-none motion-reduce:animate-none!",        "group",        className

Props

Interactive Prop Playground

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

tsx3 lines
import { TicketStubV2 } from "@/components/ui/ticket-stub-v2"; <TicketStubV2 />
PropTypeDescription
eventstringConfigures event.
datestringConfigures date.
serialstringConfigures serial.
tearbooleanToggles tear. (Default: false)
classNamestringOptional Tailwind or custom CSS classes merged with component styles.