New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-seat-select

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-seat-select

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.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
2
Created
Source

react-seat-select

react-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).

Documentation

For a complete guide, including all props and advanced usage, refer to the TheaterSeatSelect Docs.

📦 Installation

npm install react-seat-select
# or
yarn add react-seat-select

TheaterSeatSelect

The 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}
    />
  );
}

TheaterSeatLayoutDesigner

The 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 />;
}

BusSeatSelect

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

  • Documentation: For a detailed reference on props and advanced features, visit the BusSeatSelect Docs.
  • Basic Usage:
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)}
    />
  );
}

BusSeatLayoutDesigner

The 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>
  );
}

Keywords

react

FAQs

Package last updated on 04 Sep 2025

Did you know?

Socket

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.

Install

Related posts