Skip to Content

Team Member List

Team member list card: each person with avatar and description, plus a role button that opens a searchable Command popover of roles with descriptions. Controlled through a role change callback.

Installation

pnpm dlx shadcn@latest add @01orbital/team-member-list

Usage

import { TeamMemberList } from "@/components/team/team-member-list"

Needs props to render

Pass title, members, roles, onRoleChange, labels; see the API reference below.

API reference

A card listing team members, each with a role button that opens a searchable picker of roles with descriptions. The caller owns the members and saves each change in onRoleChange; the card only tracks which picker is open. Other props go to the Card.

Prop

Type

It also accepts the HTML attributes of the element it renders, and the props of the stock Card it builds on.

Dependencies

npm: @phosphor-icons/react. The CLI installs it for you.

Requires these pieces. The CLI adds each one that is missing and won't replace a file you already have unless you choose to:

The shadcn parts here are their Base UI versions, and this piece uses Base UI's API. A Radix version you already have won't work with it.

Used in blocks

One block is built with Team Member List.

Last updated on