# Seat Map (Pro)

> A venue map that starts as a few sections shaded by price: picking one zooms in and its seats ripple in from the stage as chairs facing it, with row letters and wheelchair spaces. Best available finds the best seats together for your party, and picked seats gather in a tray with a hold timer and a rolling total.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Blocks › App Screens |
| Live preview | https://uibrik.com/components/seat-map |
| Writes | 1 file into `components/uibrik/seat-map/` |
| Packages | `@number-flow/react`, `@tabler/icons-react`, `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 25, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/seat-map
```

No license yet? Tell the user Seat Map is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=seat-map#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { SeatMap } from "@/components/uibrik/seat-map/seat-map";

const sections = [
  { id: "orchestra", name: "Orchestra", from: 64, to: 116, inner: 64, outer: 142, rows: 10, price: 120, premiumRows: 3, premium: 30, view: "Full view of the stage" },
  { id: "left", name: "Left wing", from: 121, to: 154, inner: 64, outer: 142, rows: 10, price: 90, view: "Side view, close to the stage" },
  // …2 more
];

<SeatMap
  color="#2f7cf6"
  max={6}
  hold={10}
  currency="USD"
  cta="Checkout"
  width={560}
  sections={sections}
  defaultValue={[]}
  onCheckout={(seats) => {}}
  // taken={["…"]}
  // accessible={["…"]}
  // value={["…"]}
  // onChange={(ids, seats) => {}}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/seat-map.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `color` | `string` | `"#2f7cf6"` | Colour the price tiers are shaded from. |
| `max` | `number` | `6` | Most seats one person can pick. |
| `hold` | `number` | `10` | Minutes picked seats are held; 0 turns the timer off. |
| `currency` | `"USD" \| "EUR" \| "GBP" \| "INR" \| "JPY"` | `"USD"` | Currency for prices. |
| `cta` | `string` | `"Checkout"` | Label of the button in the tray. |
| `width` | `number` | `560` | Width of the card; never wider than its container. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `sections` | `{ id; name; from; to; inner; outer; rows; price; premiumRows?; premium? }[]` |  | Sections as arcs around the stage: angles in degrees (90 faces the stage), distances for the first and last row, and a price; the first rows can cost more. |
| `taken` | `string[]` |  | Sold seat ids, e.g. "orchestra-C-7". Defaults to a sample. |
| `accessible` | `string[]` |  | Wheelchair space ids. Defaults to the ends of each back row. |
| `value / onChange` | `string[] / (ids, seats) => void` |  | Picked seat ids, controlled. |
| `defaultValue` | `string[]` | `[]` | Picked seats on mount when uncontrolled. |
| `onCheckout` | `(seats: Seat[]) => void` |  | Called when the tray button is pressed. |
| `className` | `string` |  | Classes for the wrapper. |

## Where it fits

- **Event and theatre ticketing**: Sections first, seats on zoom, so buyers choose by price and view without a wall of dots. Pairs with [Checkout Flow](https://uibrik.com/components/checkout-flow.md) (Pro).
- **Flight and train seat selection**: Swap the sections for cabins and the same zoom and tray handle seat picks. Pairs with [Boarding Pass](https://uibrik.com/components/boarding-pass.md) (Pro).
- **Venue and table booking**: Seats left and prices per section answer the first questions before anyone zooms in.

## Same shelf: App Screens

- [Email Composer](https://uibrik.com/components/email-composer.md): An email composer with recipient chips and suggestions, contact cards on hover, drag-and-drop attachments with upload progress, and a send button that schedules.
- [Org Chart](https://uibrik.com/components/org-chart.md): A pan-and-zoom org chart whose teams grow out of and fold back into their manager, with search that flies to a person, a minimap and profile cards.
- [Settings Page](https://uibrik.com/components/settings-page.md) (Pro): Account and workspace settings one section at a time, with API keys, sessions, billing, a guarded danger zone and a save bar that rises when anything changes.
- [Spreadsheet Grid](https://uibrik.com/components/spreadsheet-grid.md) (Pro): A spreadsheet with live formulas, a formula bar that colours each reference, a fill handle that continues series and shifts formulas, frozen panes, and columns that resize and drag to new places.
- [Trip Itinerary](https://uibrik.com/components/trip-itinerary.md) (Pro): A trip planner by day whose times work themselves out: add, edit, delete or drag a stop, delay a flight or lengthen lunch, and every later time rolls to its new value.
- [Activity Log](https://uibrik.com/components/activity-log.md) (Pro): An audit log grouped by day, with live search and filters by person and event type.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/seat-map/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
