Tables & Lists
v1.0.0Added in 1.0.0
The team page of a B2B app: members with a role select per row, status, activity and 2FA, pending invitations, seats and an invite dialog.
Switch between Members and Invitations with the tabs (arrow keys move between them) and type in the search to filter by name or email, with the matches highlighted and the result count announced. Click the Member, Role or Last active header to sort (a third click clears it). Pick a new role right in the row: it applies at once with a spinner in the picker and, if the request fails, rolls back with an alert icon and a red outline that stay until the picker is opened again. Your own role and the owner's are locked (hover or focus them for the reason; on a phone your own card says it). The ⋯ menu per row fades in on hover or focus and is always visible on touch; Remove from team asks first, the row slides out once it is done and focus moves to the next row. On the Invitations tab each row can be resent or revoked, and expired ones say so. Invite members opens a dialog focused on the address field: press Enter, comma or space after each address, or paste a whole list ("Ana Pop <ana@firma.ro>; ..."), and addresses that are invalid, already members or already invited are listed under Not added with the reason. Cmd+Enter or Ctrl+Enter sends from the address field or the message; more addresses than free seats keeps Send disabled and explains why, and the new invitations slide into the Invitations tab. Below 768px of its own width (a phone, a narrow settings column) every row is a card with a full-width role picker, two cards to a row from 672px, and the invite button turns into an icon; on a phone the menus, pickers and the dialog become bottom sheets.
npx wingo-ui@latest add members-tablePro item: the CLI needs a Pro account. See plans
8 of 12 seats1 reserved
| Status | 2FA | More actions | |||
|---|---|---|---|---|---|
Daniel Reed daniel.reed@northwind.app · Sales manager | Active | On | |||
Emma CarterYou emma.carter@northwind.app · Operations | Admin | Active | On | ||
Grace Kim grace.kim@northwind.app · Marketing | Active | Off | |||
James Miller james.miller@northwind.app · Logistics | Suspended | On | |||
Lucas Bennett lucas.bennett@northwind.app · CEO | Owner | Active | On | ||
Olivia Brooks olivia.brooks@northwind.app · Customer support | Active | On | |||
Ryan Cooper ryan.cooper@northwind.app · Account executive | Active | On | |||
Sophia Lee sophia.lee@northwind.app · Accounting | Active | On |
daniel.reed@northwind.app · Sales manager
emma.carter@northwind.app · Operations
You can't change your own role
grace.kim@northwind.app · Marketing
james.miller@northwind.app · Logistics
lucas.bennett@northwind.app · CEO
olivia.brooks@northwind.app · Customer support
ryan.cooper@northwind.app · Account executive
sophia.lee@northwind.app · Accounting
Change Grace Kim's role to see a failed request roll back; the second try works.
confirmRemove: true · responsive: true · defaultInviteRole: "" · locale: "en-US"