Skip to content
Calm motion: animations on this site only fade, with no movement

Ticket ​

An event ticket with a tear line, the seat, and a QR code

Shows a ticket after a person books it, on a page or in a list of orders. The main part holds the event and its details, and the stub holds the code to scan at the door. To choose the seat first, use the seat picker.

Basic

Home Studio Live

Episode 50, recorded with an audience

Date
Sat 28 Nov 2026
Time
19:30
Venue
Kineforum, Jakarta
Seat
C5
Name
Rara Wijaya

Ticket codeHSL-0050-C5

  • event is the name, as a heading, and subtitle is a line under it.
  • date, time, venue, seat, and holder are text. If you leave one out, it does not show.
  • qr is the module grid of the code, for example encode(code).data from uqr. The QR code component draws it. code shows the code as text under it. Without both, the ticket has no stub.
  • A dashed tear line with a notch at each end splits the two parts. On a narrow screen, the stub goes under the main part.
  • The QR code has the code in its name for screen readers. Change the words with labels or a label pack: date, time, venue, seat, holder, and code.

Usage ​

ts
import { BlessTicket } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
event*string—the name of the event, as the heading
subtitlestring—a short line under it, for example the name of the show
datestring—as text, for example "Sat 28 Nov 2026"
timestring—
venuestring—
seatstring—for example "C5"
holderstring—
codestring—the ticket code, shown under the QR code
qrboolean[][]—the QR modules of the code, for example `encode(code).data` from uqr
labelsPartial<{ date: string; time: string; venue: string; seat: string; holder: string; code: string; }>—

Released under the MIT License. Character names and artwork belong to their owners.