Seat Map - React Component | Kokonut UI
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 Agentbunnpmpnpm
Open in Copy code
›Add the seat-map component from Kokonut UI to this project with npx shadcn@latest add https://kokonutui.com/r/seat-map.json, then show me how to use it.
lucide-react, motion
Dune: Part Three
Today · 19:30 · Screen 4
78 left
Screen
SCREEN
Seats
Front · $11
A
234567891011
A
B
123456789101112
B
Standard · $15
C
123456789101112
C
D
123456789101112
D
E
123456789101112
E
F
123456789101112
F
G
123456789101112
G
Premium · $21
H
123456789101112
H
I
123456789101112
I
FreeYoursSoldDrag along a row to pick several
No seats yet
Pick your seats
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.
Copy Text
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.
Copy Text
npm install lucide-react motion
Usage
Copy Text
import SeatMap from "@/components/kokonutui/seat-map";
export default function Example() {
return <SeatMap />;
}
Props
title
string Default `