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
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add ticket-stub-v2Or install the full npm package:
npm install bigbulluiUsage
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 helperZero 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", classNameProps
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 />| Prop | Type | Description |
|---|---|---|
| event | string | Configures event. |
| date | string | Configures date. |
| serial | string | Configures serial. |
| tear | boolean | Toggles tear. (Default: false) |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |