Seat Reduce

Seat Reduce is a copy-paste React component that stops fewer seats locked out an active admin 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-reduce
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

StopsFewer seats locked out an active admin

Was this component page useful?

How do I install Seat Reduce?

pnpm dlx shadcn@latest add @bollard/seat-reduce

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

How do I use Seat Reduce in React?

seat-reduce-usage.tsx
import { SeatReduce, type SeatMember, type SeatReduction } from "@/components/ui/seat-reduce"

<SeatReduce
  key={run}
  seats={12}
  defaultValue={8}
  members={team.members}
  invites={INVITES}
  pricePerSeat={600}
  currency="INR"
  locale="en-IN"
  renewsAt={team.renewsAt}
  onConfirm={(r) => new Promise<void>((resolve) => setTimeout(() => (setResult(r), resolve()), 600))}
  onCancel={() => setRun((n) => n + 1)}
/>

What input mistakes does Seat Reduce catch?

  • More members than the new seat count, until you choose who goes
  • Unaccepted invites suggested first, then least-active plain members
  • Picking an admin, owner or someone active today
  • New bill and when it starts
  • What happens to each removed person's work

What props does Seat Reduce accept?

SeatReduce props
PropTypeDefault
seats* (required)

Seats paid for today.

number—
value

New seat count. Controlled.

number—
defaultValue

Starting seat count when uncontrolled.

numberseats
onValueChange

Called with the new seat count.

(seats: number) => void—
members* (required)

Current members, with role, last activity and work summary.

SeatMember[]—
invites

Unaccepted invites; they hold seats too.

PendingInvite[][]
pricePerSeat* (required)

Price per seat per period.

number—
currency

ISO 4217 code.

string"USD"
locale

Locale for money and dates.

string"en-US"
period

e.g. "month".

string"month"
renewsAt* (required)

When the new bill (and the loss of access) starts.

When—
workFate

What happens to a removed member's work.

(work: string) => string(work) => `${work} stay in the workspace, owned by you`
onConfirm* (required)

A returned promise shows a pending state; a rejection is caught.

(reduction: SeatReduction) => void | Promise<void>—
onCancel

Called when the user cancels.

() => void—
messages

Overrides any of the sentences in `SEAT_REDUCE_MESSAGES`, e.g. to translate them.

Partial<SeatReduceMessages>—

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

How is Seat Reduce accessible?

  • Section labelled by its title; member checkboxes have <label>s
  • Seat count input has an aria-label; arrow keys change it and +/- buttons have aria-labels
  • Selection status and warnings render in polite live regions
  • Bill highlight animation skipped under reduced motion

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

What are the limitations and server boundaries?

This is a UX guard rail. Enforce on the server: Recheck seats, roles and billing server-side; never let a client choice remove the last owner or admin.

  • Activity and work summaries come from the props you pass
  • Does not change billing; onConfirm receives the seats and who goes

What expensive mistakes does Seat Reduce stop?

Fewer seats locked out an active admin

Also known as

seats · licenses · team plan · billing · downgrade · remove members · per seat pricing

Field type

What dependencies does Seat Reduce require?

Seat Reduce facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameSeat Reduce
Registry identifier@bollard/seat-reduce
Install commandnpx shadcn@latest add @bollard/seat-reduce
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 Reduce

How does Seat Reduce protect destructive mutations?

Seat Reduce prevents fewer seats locked out an active admin. Enforces deliberate friction against More members than the new seat count, until you choose who goes, Unaccepted invites suggested first, then least-active plain members, Picking an admin, owner or someone active today, New bill and when it starts, What happens to each removed person's work. Limitation: authorize seat-reduce mutations on the server.

How do I install seat-reduce with shadcn?

Run `npx shadcn@latest add @bollard/seat-reduce`. Sources added: registry/default/seat-reduce/seat-reduce.tsx. Package requirements: lucide-react.

What props customize Seat Reduce?

Seat Reduce accepts `seats`, `value`, `defaultValue`, `onValueChange`, `members`. Configures seats, licenses, team plan behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of seat-reduce?

Activity and work summaries come from the props you pass. Does not change billing; onConfirm receives the seats and who goes Server requirement: Recheck seats, roles and billing server-side; never let a client choice remove the last owner or admin.

How does Seat Reduce meet accessibility guidelines?

Section labelled by its title; member checkboxes have <label>s. Seat count input has an aria-label; arrow keys change it and +/- buttons have aria-labels. Selection status and warnings render in polite live regions. Bill highlight animation skipped under reduced motion. Minimizes errors: reducing seats removed users, downgrade seats who loses access.

Which components pair with Seat Reduce?