Seat Usage & Limits
Pending invites counted, and a meter that goes over instead of clamping.
PROGet Seat Usage & Limits and 168 other Pro components with pro lifetime — Get Pro
- Category
- Workspace
- Access
- ProPro · unlocked
- Source
- 324 lines · one file
The decision inside it
Pending invites hold a seat
A meter that counts only accepted members is wrong in exactly the week an admin sends six invites, and right again on the Friday the bill explains it.
When to use it
Use Seat Usage & Limits for paid seats: active and pending against the limit, what extra seats cost and from when, and invite or revoke. Prices are whole currency units per seat per month.
Installation
How you get it
Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.
Use Liro's Seat Usage & Limits for this.
Install it: npx shadcn@latest add @liro/seat-usage
(the @liro registry is set up in components.json, with LIRO_KEY in .env.local)
Import it from @/components/ui/seat-usage.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Pro components install through the @liro registry with your CLI token: see the Namespaced tab.
Usage
import { SeatUsage } from "@/components/ui/seat-usage";
export function Seats({ invite }: { invite: () => void }) {
return <SeatUsage active={9} pending={2} limit={10} pricePerSeat={12} plan="Team" renewsOn="14 Nov" onInvite={invite} />;
}API reference
“Copy prompt” above puts a full brief on your clipboard, install command, dependencies, props, and the mistakes an assistant usually makes with this component.
Props
Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.
| Type | Notes | ||
|---|---|---|---|
active | number | No | People who have accepted and hold a seat. |
pending | number | No | Invites sent and not yet accepted. These hold a seat too. |
limit | number | No | Seats the plan includes. |
pricePerSeat | number | No | Per seat, per month, in whole currency units. |
currency | string | No | Currency symbol. Default `$`. |
plan | string | No | Plan name, shown in the header. |
renewsOn | string | No | When the next invoice lands: "14 Oct". |
title | string | No | – |
controls | boolean | No | Show the demo controls that add and revoke an invite. |
onInvite | () => void | No | – |
onRevoke | () => void | No | – |
look | Look | No | Layered sets it in a tray, the heading above the card and the status in the strip below. Flat is one card. |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLiro foundations, installed alongside it
liro-themeAccessibility
- Keyboard reachable throughout, in visual order
- Focus trapped in overlays, Escape closes them
- Focus returns to whatever opened it
- Live regions announce what changed, not that something did
- Honours prefers-reduced-motion
Responsive behavior
- Sizes to its container, not the viewport
- Usable from 320px up
- Pointer-based interaction, so trackpad and touch both work
- No hover-only affordances