Seat Gap Check

Seat Gap Check is a copy-paste React component that stops group split across row at booking before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/seat-gap-check
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsGroup split across row at booking

Was this component page useful?

How do I install Seat Gap Check?

pnpm dlx shadcn@latest add @bollard/seat-gap-check

The files land in your project. They're yours to edit.

How do I use Seat Gap Check in React?

seat-gap-check-usage.tsx
import { parseSeatMap, SeatGapCheck, type SeatIssue } from "@/components/ui/seat-gap-check"

<SeatGapCheck rows={ROWS} travellers={FAMILY} value={seats} onValueChange={setSeats} onIssuesChange={setIssues} />

What input mistakes does Seat Gap Check catch?

  • Party split across a row or aisle
  • A single orphan seat left between taken seats (orphanRule)
  • A child with no adult beside them
  • One-tap move to the nearest contiguous block, children beside adults

What props does Seat Gap Check accept?

SeatGapCheck props
PropTypeDefault
rows* (required)

The seat map, front row first. `parseSeatMap` builds one from text.

SeatRow[]—
travellers* (required)

Who needs a seat. Seats are given out in this order.

Traveller[]—
value

Controlled seats, one per traveller in the same order ("" for none yet).

string[]—
defaultValue

Initial seats when uncontrolled.

string[][]
onValueChange

Called with the seat for each traveller.

(seats: string[]) => void—
orphanRule

Single empty seats: "warn" (default), "block" (the venue refuses them; say so) or "off" (flights, buses).

"warn" | "block" | "off""warn"
onIssuesChange

Called whenever the open issues change, to gate checkout.

(issues: SeatIssue[]) => void—
delay

Pause in ms before the issue count is announced to screen readers.

number500
messages

Any visible string; `issues` may be partial. Set `front` to "" to hide the screen bar.

Partial<Omit<SeatGapMessages, "issues">> & { issues?: Partial<SeatGapMessages["issues"]> }—

* required. Also accepts the native props of <div> (className, aria-*, data-*…), passed through to it.

How is Seat Gap Check accessible?

  • Seat map is a role=grid with rowheaders; one tab stop with arrow-key, Home and End navigation
  • Each seat button has an aria-label with its status and aria-pressed when chosen
  • Issue icons are aria-hidden with text alongside

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

  • Venue rules differ; set orphanRule to match yours
  • Works on the seat map you pass; prices and accessibility seats are not considered

What expensive mistakes does Seat Gap Check stop?

Group split across row at booking

Also known as

seat selection · seat map · movie tickets · bookmyshow · cinema seats · flight seats · seats together · bus seats

What dependencies does Seat Gap Check require?

Seat Gap Check facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameSeat Gap Check
Registry identifier@bollard/seat-gap-check
Install commandnpx shadcn@latest add @bollard/seat-gap-check
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Seat Gap Check

How does Seat Gap Check validate Indian financial identifiers?

Seat Gap Check stops group split across row at booking. Complies with national standards for Party split across a row or aisle, A single orphan seat left between taken seats (orphanRule), A child with no adult beside them, One-tap move to the nearest contiguous block, children beside adults. Limitation: verify seat-gap-check with issuer gateway.

How do I install seat-gap-check with shadcn?

Run `npx shadcn@latest add @bollard/seat-gap-check`. Sources added: registry/default/seat-gap-check/seat-gap-check.tsx, registry/default/seat-gap-check/seats.ts. Package requirements: lucide-react.

What props customize Seat Gap Check?

Seat Gap Check accepts `rows`, `travellers`, `value`, `defaultValue`, `onValueChange`. Configures seat selection, seat map, movie tickets behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of seat-gap-check?

Venue rules differ; set orphanRule to match yours. Works on the seat map you pass; prices and accessibility seats are not considered Server requirement: backend verification for seat-gap-check.

How does Seat Gap Check meet accessibility guidelines?

Seat map is a role=grid with rowheaders; one tab stop with arrow-key, Home and End navigation. Each seat button has an aria-label with its status and aria-pressed when chosen. Issue icons are aria-hidden with text alongside. Minimizes errors: family seats split, single seat gap left.

Which components pair with Seat Gap Check?