Skip to content

@theatrical/react

A React component library with cinema-inspired design. Dark mode by default. Every component connects directly to @theatrical/sdk.

Install

Terminal window
npm install @theatrical/react @theatrical/sdk

Setup

Wrap your app in TheatricalThemeProvider:

import { TheatricalThemeProvider } from '@theatrical/react';
export default function App() {
return (
<TheatricalThemeProvider>
{/* your app */}
</TheatricalThemeProvider>
);
}

Components

ComponentPurpose
SeatMapInteractive auditorium seat selection
SessionPickerDate-based showtime browser
OrderSummaryBooking review with price breakdown
PaymentFormPayment shell with Adyen integration slot
LoyaltyBadgeCompact tier + points display
MemberCardFull loyalty member card with tier progression

SeatMap example

import { SeatMap } from '@theatrical/react';
<SeatMap
rows={rows}
selectedSeatIds={selectedSeatIds}
onSeatSelect={(seatId) => toggleSeat(seatId)}
maxSelectable={4}
/>

SessionPicker example

import { SessionPicker } from '@theatrical/react';
<SessionPicker
sessions={sessions}
groupBy="time"
onSessionSelect={(sessionId) => setSessionId(sessionId)}
/>