
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
react-seat-select
Advanced tools
Easily create and manage interactive bus and theater seat layouts in your React applications with React Seat Select. This flexible and customizable library supports seat selection, layout design, and real-time updates for an intuitive user experience.
react-seat-selectreact-seat-select is a comprehensive React component library for building customizable seat selection UIs. It includes components for a wide range of applications, including theaters, cinemas, and buses. The library provides both interactive seat selection components (*SeatSelect) and visual layout design tools (*LayoutDesigner).
For a complete guide, including all props and advanced usage, refer to the TheaterSeatSelect Docs.
npm install react-seat-select
# or
yarn add react-seat-select
TheaterSeatSelectThe TheaterSeatSelect component is a highly customizable, interactive tool for seat selection in a theater or cinema setting. It supports various seat states (e.g., booked, reserved) and allows for both single and multiple seat selection.
import React from "react";
import { TheaterSeatSelect } from "react-seat-select";
const seatConfig = [
{
title: "VIP Section",
seats: {
A: [
{ id: "A1", label: "1" },
{ id: "A2", label: "2" }
],
},
},
];
export default function App() {
return (
<TheaterSeatSelect
config={seatConfig}
bookedSeats={["A1"]}
onSelect={(seat) => console.log("Selected:", seat)}
maxSelectedSeats={2}
/>
);
}
TheaterSeatLayoutDesignerThe TheaterSeatLayoutDesigner component is a visual tool that allows developers and admins to easily create and export custom theater seat layouts.
import { TheaterSeatLayoutDesigner } from "react-seat-select";
function Example() {
return <TheaterSeatLayoutDesigner />;
}
BusSeatSelectThe BusSeatSelect component is designed to handle the unique complexities of bus seat booking, including support for sleeper vs. seater types, gender-specific bookings (male-only, female-only), and seat pricing.
import React from "react";
import { BusSeatSelect } from "react-seat-select";
const busConfig = {
section1: {
title: "Lower Deck",
columns: [
{ id: "col1", seats: [{ id: "1A", type: "seater" }] },
],
},
};
export default function App() {
return (
<BusSeatSelect
config={busConfig}
bookedSeats={["1A"]}
onSelect={(seat) => console.log("Selected:", seat)}
/>
);
}
BusSeatLayoutDesignerThe BusSeatLayoutDesigner component is a visual editor for creating and exporting bus seat layouts, supporting both sleeper and seater configurations.
import { BusSeatLayoutDesigner } from "react-seat-select";
function Example() {
return (
<div style={{ overflow: "auto" }}>
<BusSeatLayoutDesigner />
</div>
);
}
FAQs
Easily create and manage interactive bus and theater seat layouts in your React applications with React Seat Select. This flexible and customizable library supports seat selection, layout design, and real-time updates for an intuitive user experience.
We found that react-seat-select demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.