Demo ticket
Sample event
Date and timeFriday, 7:00 PM
VenueExample venue
SeatA12
GateGate 3
SM-2041-7731An admission pass that looks like one: real notches cut at the tear-off, a dotted perforation and a barcode drawn from the code. Cards.
Open playgroundEventTicket is a React component in the Cards category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { EventTicket } from "@ashutoshswamy/smoui" and set gate, code, event among its 4 props.
npm i @ashutoshswamy/smouiimport { EventTicket } from "@ashutoshswamy/smoui";
<EventTicket event="Event name" date="Friday · 7:00 PM" venue="Venue name" seat="A12" code="YOUR-CODE" />Shown on the stub.
stringPrinted under the barcode, which is drawn from it.
stringEvent details.
stringOptional ticket details.
string