Members Table

Search, filters, and a bulk bar that names its refusals before it runs.

PROGet Members Table and 168 other Pro components with pro lifetime — Get Pro

Category
Workspace
Access
Pro
Source
799 lines · one file

The decision inside it

Refusals come before the action, not after

Select everyone and choose Remove: the bar says it cannot remove the owner and cannot remove you, and then runs on the rest. The alternative is a red toast listing what half-happened.

When to use it

Use Members Table for a workspace's people: search, role and status, last active, and bulk change role or remove with a plan that explains who can't be changed (owners, yourself) and how many seats are freed.

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 Members Table for this.
Install it: npx shadcn@latest add @liro/members-table
(the @liro registry is set up in components.json, with LIRO_KEY in .env.local)
Import it from @/components/ui/members-table.
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

components/team-members.tsx
import { MembersTable, type Member } from "@/components/ui/members-table";

export function TeamMembers({ members }: { members: Member[] }) {
  return <MembersTable members={members} pageSize={10} />;
}

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.

TypeNotes
membersMember[] No–
pageSizenumber NoRows rendered at once. Raise it only if you have measured. Default 12.
onBulkRole(ids: string[], role: AssignableRole) => void NoRuns after the confirm strip, with the rows that survived the refusals.
onBulkRemove(ids: string[]) => void No–
onRowMenu(id: string, action: string) => void No–
lookLook NoLayered puts search and filters in the tray, the table on the card and the count in the strip. Flat is one card.

Dependencies

npm packages

clsxframer-motionlucide-reacttailwind-merge

Liro foundations, installed alongside it

liro-themeavatarmenurole-chip

Accessibility

  • 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

Used in a screenAll screens