EventTicket

An 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 playground
Demo ticket

Sample event

Date and timeFriday, 7:00 PM
VenueExample venue
SeatA12
GateGate 3
SM-2041-7731

About

EventTicket 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.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { EventTicket } from "@ashutoshswamy/smoui";

<EventTicket event="Event name" date="Friday · 7:00 PM" venue="Venue name" seat="A12" code="YOUR-CODE" />

Props 4

gate

Shown on the stub.

string
code

Printed under the barcode, which is drawn from it.

string
event / date / venue

Event details.

string
admission / seat / code

Optional ticket details.

string