npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-seat-select

v1.0.2

Published

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.

Readme

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