

Every state


default


hover


focus


confirm


removed


owner-only
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "members" | Id of the list; the rows' parts hang off it. |
| label | string | "Workspace members" | Accessible name of the list. |
| members | MemberRowRoleMember[] | [ { id: "m1", name: "Maren Vos", email: "maren@example.com", photo: photo("maren"), role: "Owner", owner: true }, … | Members. |
| roles | string[] | ["Admin", "Support", "Warehouse", "Viewer"] | The roles a member can be given (the owner role is not one of them). |
| onRoleChange | (id: string, role: string) => void | – | Called with the member's id and the new role. |
| onRemove | (id: string) => void | – | Called with the member's id after the remove is confirmed. |
| labels | { you: string role: string remove: string confirm: string confirmHint: string cancel: string roleStatus: string removedStatus: string } | { you: "You", role: "Role of", remove: "Remove", confirm: "Remove {name} from the workspace?", confirmHint: "They los… | Labels. |
| className | string | – | Extra classes on the outer element. |


