Skip to content
Sign upPro
SettingsSeat managerMenu

Seat manager (Pro)

ProIncluded in $99

Members, roles and seats, with invites that catch typos and state the cost of extra seats before anything is sent.

ProSix of eight seats used. Paste three emails to see the cost of the seat you do not have.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/seat-manager

Needs chatcn Pro

This command works with a Pro license, along with every Pro component.

Or start free: sign up and get three Pro components on us, with a new one every month.

Usage

tsx
import { SeatManager } from "@/components/ui/chatcn/pro/seat-manager"

<SeatManager
  members={members}            // { id, email, name?, role, status?, lastActiveAt?, you?, owner? }
  roles={[
    { id: "admin", label: "Admin", description: "Members, billing, keys and every setting" },
    { id: "member", label: "Member", description: "Chats, projects and agents" },
  ]}
  seats={8}
  seatPrice="$17.40"           // one extra seat for the rest of this period
  onInvite={(emails, role) => invite(emails, role)}
  onRoleChange={(id, role) => setRole(id, role)}
  onRemove={(id) => remove(id)}
  onResend={(id) => resend(id)}
  onAddSeats={openSeats}
/>

Seats draw as cells next to the count, and pending invites use seats like members do. Paste or type emails and each becomes a chip; duplicates and people already in the workspace are dropped, and anything that is not an email is named and blocks sending until it is fixed. When invites need more seats than are free, the line under the field says how many and, with seatPrice, what adding them costs this period, before Invite is pressed. Roles change from a menu on each row with each role's description; the owner and you are marked and cannot be changed or removed here. Invites can be resent or revoked, and removing someone says what happens to their chats and files. Search appears once there are more than eight people.

Examples

States

ProRead only for a member, and a narrow frame.

Props

PropTypeNotes
membersSeatMember[]{ id, email, name?, role, status?, lastActiveAt?, you?, owner? }
rolesSeatRole[]{ id, label, description? }
seatsnumberSeats paid for
seatPricestringOne extra seat this period, formatted
onInvite(emails, role) => void | Promise<void>Shows the invite field; throw to show the error
onRoleChange, onRemove, onResend, onAddSeatsEach shows its control
now, localeRelative times
labelsPartial<SeatManagerLabels>Every string, for translation

Keyboard

KeyAction
Comma, Space, EnterTurn what is typed into a chip
Enter on an empty fieldSend the invites
Backspace on an empty fieldRemove the last chip
EscapeCancel a confirmation

Accessibility

  • The line under the invite field is a polite live region with the hint, the seat cost or the problem.
  • Role menus are radio groups named by the person.
  • Confirmations open inside the row with Cancel focused.

Motion

None beyond the spinner while an invite or removal runs.