Skip to Content
Kokonut UI

IN-11InputsNew, October 21, 2026

Seat Map

Pick seats for a show. Drag along a row to take several, and it points out any single seat you'd leave stranded.

Install with
lucide-react, motion

PRONatural Date Input and more like it are in Kokonut UI Pro

Installation

Seat Map is a free, open-source React component in the Kokonut UI Inputs collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/seat-map.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/seat-map

Or add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/seat-map.tsx.

npm install lucide-react motion

Usage

import SeatMap from "@/components/kokonutui/seat-map";

export default function Example() {
  return <SeatMap />;
}

Props

title
stringDefault "Dune: Part Three"
subtitle
stringDefault "Today · 19:30 · Screen 4"
tiers
SeatTier[]Default built-in
blocks
number[]Default [3, 6, 3]

Seats per block, left to right, with an aisle between blocks.

taken
string[]Default built-in

Seat ids already sold, like "D7".

accessible
string[]Default ["A1", "A12"]

Seats with wheelchair space.

defaultSelected
string[]Default []
maxSeats
numberDefault 8

Most seats one booking can hold.

currency
stringDefault "$"
onChange
(seats: string[]) => void
onContinue
(seats: string[], total: number) => void
className
string

Extra classes for the root element.

SeatTier

namerequired
string
pricerequired
number
rowsrequired
string[]

Row letters in this tier, front to back.

Dependencies

NeedsVersionComes from
lucide-react^0.556.0npm, installed by the CLI
motion^12.23.25npm, installed by the CLI
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.