Skip to content
HomeCobalt

Member list

Lists the people who have access to something shared and the invitations still open, each with a role that can be changed and a way to take the access away.

Examples

The people who can see a shared watchlist, and an invitation not yet taken up. A new role shows at once and the line under the name says Saving while it is on its way; Remove asks first. The owner's row is locked, with the reason in place of the address.
  • Ada ParkYou
    The watchlist needs an owner
    Owner
  • Tomás Reyes
    tomas.reyes@example.com
  • Priya Shah
    priya.shah@example.com
  • lee.chen@example.com
    Invited, expires Oct 24
    Viewer
A role change that failsA role change the server refuses. The new role shows at once and Saving comes under the name; refused, the old role comes back and the line says so in red until the next change. Here every first try fails, and the next goes through.
  • Ada ParkYou
    The watchlist needs an owner
    Owner
  • Tomás Reyes
    tomas.reyes@example.com
  • Priya Shah
    priya.shah@example.com
Share linkThe link to what is shared, with the system's copy button beside it and a line saying what it lets someone do. A press on the link selects it whole, for copying by hand.

Anyone at Harbour Capital with the link can view the watchlist.

In a dialogSharing a watchlist in one dialog: invite by email with a role, everyone who has access with their role, and the link with what it lets people do. Invited addresses join the list as invitations.

Usage

Use it when

  • The people and open invitations of something shared, such as a watchlist or a workspace, each with a role that can change.
  • A share dialog, under an InviteField and above the ShareLink.

Use something else when

  • People shown without access to manage, such as a fund's team. Use Item instead, inside an ItemGroup.
  • Hundreds of members to sort, filter and act on in bulk. Use DataTable instead.
  • A few faces that say who is in something. Use Avatar instead, at most 5 in an AvatarGroup with an AvatarGroupCount for the rest, such as "+6", as rule/avatar-group-max says.

Rules

General

Content

Avoid

Limits

Install

npx shadcn@latest add https://kaanarici.com/r/cobalt/member-list.json
import { MemberList, memberListLabels, MemberRow, ShareLink, shareLinkLabels, type Member } from "@/components/cobalt/ui/member-list"