opensourceui
GitHubTwitter/X
  1. Home
  2. Components
  3. Text
  4. Cinema Ticket
Back to Text

Components / Text

Cinema Ticket

Free Text React component — CinemaTicketCard. MIT licensed, copy-paste ready for Next.js and Tailwind CSS.

Split cinema ticket with film title, venue, screen, seats, show time, and a perforated stub. Dark ticket stock that feels printed, not flat.

Preview

Admit one

Interstellar

INOX South City

Screen

Screen 4 · IMAX

Seats

G12, G13

7:45 PM

Sat, 7 Jun 2026

TKT-90421

7:45 PM

Setup

How to use

Free for personal and commercial use. No UI attribution required. Include the MIT copyright notice when copying component source into your project. Read the MIT license.

  1. 1

    Run in your terminal:

    $npm install clsx tailwind-merge lucide-react
  2. 2

    Copy lib/cn.ts below. Skip if you already have cn().

  3. 3

    Copy the code below and create components/text/cinema-ticket-card.tsx in your project.

  4. 4

    Import and render:

    Example

    import { CinemaTicketCard } from "@/components/text/cinema-ticket-card";

    <CinemaTicketCard />

lib/cn.ts

1
2
3
4
5
6
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
 
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}

components/text/cinema-ticket-card.tsx

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import { forwardRef, type ComponentPropsWithoutRef } from "react";
 
import { cn } from "@/lib/cn";
 
import { Clock, MapPin } from "lucide-react";
 
export type CinemaTicketCardProps = Readonly<
{
filmTitle?: string;
cinema?: string;
screen?: string;
showTime?: string;
seats?: string;
date?: string;
ticketId?: string;
} & ComponentPropsWithoutRef<"div">
>;
 
// Production-ready Cinema Ticket component — styled with Tailwind CSS.
export const CinemaTicketCard = forwardRef<
HTMLDivElement,
CinemaTicketCardProps
>(
(
{
className,
filmTitle = "Interstellar",
cinema = "INOX South City",
screen = "Screen 4 · IMAX",
showTime = "7:45 PM",
seats = "G12, G13",
date = "Sat, 7 Jun 2026",
ticketId = "TKT-90421",
...props
},
ref,
) => (
<div
ref={ref}
data-slot="cinema-ticket-card"
className={cn("w-96 font-sans", className)}
{...props}
>
<div className="flex overflow-hidden rounded-2xl bg-neutral-950">
<div
data-slot="cinema-ticket-card-main"
className="min-w-0 flex-1 p-4 sm:p-5"
>
<p className="font-mono text-[9px] tracking-[0.25em] text-amber-500/70 uppercase">
Admit one
</p>
<h3 className="mt-1 truncate text-lg font-semibold tracking-tight text-white sm:text-xl">
{filmTitle}
</h3>
<p className="mt-0.5 truncate text-xs text-neutral-500">{cinema}</p>
 
<div className="mt-4 grid grid-cols-2 gap-3">
<div>
<p className="text-[9px] text-neutral-600 uppercase">Screen</p>
<p className="text-xs font-semibold text-white">{screen}</p>
</div>
<div>
<p className="text-[9px] text-neutral-600 uppercase">Seats</p>
<p className="text-xs font-semibold text-amber-400">{seats}</p>
</div>
<div className="flex items-center gap-1">
<Clock size={11} className="text-neutral-600" />
<p className="text-xs text-neutral-300">{showTime}</p>
</div>
<div className="flex items-center gap-1">
<MapPin size={11} className="text-neutral-600" />
<p className="truncate text-xs text-neutral-300">{date}</p>
</div>
</div>
 
<p className="mt-4 font-mono text-[8px] text-neutral-700">
{ticketId}
</p>
</div>
 
<div
data-slot="cinema-ticket-card-stub"
className="relative flex w-16 shrink-0 flex-col items-center justify-center border-l border-dashed border-neutral-700 bg-neutral-900 px-2"
>
<div className="absolute -top-2 left-1/2 h-4 w-4 -translate-x-1/2 rounded-full bg-white" />
<div className="absolute -bottom-2 left-1/2 h-4 w-4 -translate-x-1/2 rounded-full bg-white" />
<div
className="rotate-180 text-[8px] font-bold tracking-widest text-neutral-600 uppercase"
style={{ writingMode: "vertical-rl" }}
>
{showTime}
</div>
</div>
</div>
</div>
),
);
 
CinemaTicketCard.displayName = "CinemaTicketCard";
PreviousNext

On this

page

Jump to a section on this page.

  • lib/cn.ts
  • components/text/cinema-ticket-card.tsx

Sponsor spot · demo preview

Logo

Your brand name

Your tagline or category

A short pitch about your product or service goes here. This is a preview of how sponsor cards will look in this sidebar.

Your call to action

This slot is available. Sponsor Opensource UI and reach developers browsing components every day.