HomeDocsComponentsBlocksChartsThemes
Introduction
  • Introduction
  • Installation
  • Themes
  • Artwork
  • llms.txt
Components
  • Accordion
  • Alert
  • Alert Dialog
  • Amount
  • Aspect Ratio
  • Audio Player
  • Avatar
  • Avatar Upload
  • Badge
  • Banner
  • Brand SVG
  • Breadcrumb
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Code Block
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy Button
  • Countdown
  • Data Grid
  • Data Table
  • Date Picker
  • Date Range Picker
  • Description List
  • Device Mockup
  • Dialog
  • Direction
  • Dot Loader
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • File Upload
  • Form Guide
  • Hover Card
  • Icon Tile
  • Image Export
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kanban
  • Kbd
  • Label
  • League Table
  • Marquee
  • Match Score
  • Meter
  • Multi Select
  • Native Select
  • Number Field
  • Pagination
  • Password Strength
  • Phone Input
  • Popover
  • Progress
  • Progress Circle
  • Radio Group
  • Rating
  • Resizable
  • Responsive Dialog
  • Rich Text Editor
  • Scroll Area
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Signature
  • Skeleton
  • Slider
  • Sonner
  • Sortable
  • Spinner
  • Stat
  • Stat Tabs
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Terminal
  • Textarea
  • Time Field
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree
  • Typography
  • Video Player
  • Window Mockup
  • Accordion
  • Alert
  • Alert Dialog
  • Amount
  • Aspect Ratio
  • Audio Player
  • Avatar
  • Avatar Upload
  • Badge
  • Banner
  • Brand SVG
  • Breadcrumb
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Code Block
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy Button
  • Countdown
  • Data Grid
  • Data Table
  • Date Picker
  • Date Range Picker
  • Description List
  • Device Mockup
  • Dialog
  • Direction
  • Dot Loader
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • File Upload
  • Form Guide
  • Hover Card
  • Icon Tile
  • Image Export
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kanban
  • Kbd
  • Label
  • League Table
  • Marquee
  • Match Score
  • Menubar
  • Meter
  • Multi Select
  • Native Select
  • Navigation Menu
  • Number Field
  • Pagination
  • Password Strength
  • Phone Input
  • Popover
  • Progress
  • Progress Circle
  • Radio Group
  • Rating
  • Resizable
  • Responsive Dialog
  • Rich Text Editor
  • Scroll Area
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Signature
  • Skeleton
  • Slider
  • Sortable
  • Spinner
  • Stat
  • Stat Tabs
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Terminal
  • Textarea
  • Time Field
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree
  • Typography
  • Video Player
  • Window Mockup
  • Accordion
  • Alert
  • Alert Dialog
  • Amount
  • Aspect Ratio
  • Audio Player
  • Avatar
  • Avatar Upload
  • Badge
  • Banner
  • Brand SVG
  • Breadcrumb
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Cart Button
  • Cart Line Item
  • Cart Summary
  • Chart
  • Checkbox
  • Code Block
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy Button
  • Countdown
  • Data Grid
  • Data Table
  • Date Picker
  • Date Range Picker
  • Description List
  • Device Mockup
  • Dialog
  • Direction
  • Dot Loader
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • Fill Blank
  • File Icon
  • File Upload
  • Form Guide
  • Hover Card
  • Icon Tile
  • Image Export
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kanban
  • Kbd
  • Label
  • League Table
  • Marquee
  • Match Score
  • Menubar
  • Meter
  • Multi Select
  • Native Select
  • Navigation Menu
  • Number Field
  • Pagination
  • Password Strength
  • Person Avatar
  • Phone Input
  • Popover
  • Price
  • Product Card
  • Progress
  • Progress Circle
  • Radio Group
  • Rating
  • Resizable
  • Responsive Dialog
  • Rich Text Editor
  • Scroll Area
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Signature
  • Skeleton
  • Slider
  • Sonner
  • Sortable
  • Spinner
  • Stat
  • Stat Tabs
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Terminal
  • Textarea
  • Time Field
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree
  • Typography
  • Video Player
  • Window Mockup
  • Accordion
  • Alert Dialog
  • Alert
  • Amount
  • Aspect Ratio
  • Audio Player
  • Avatar Upload
  • Avatar
  • Badge
  • Banner
  • Bot Avatar
  • Brand SVG
  • Breadcrumb
  • Button Group
  • Button
  • Calendar
  • Card
  • Carousel
  • Cart Button
  • Cart Line Item
  • Cart Summary
  • Chart
  • Checkbox
  • Code Block
  • Collapsible
  • Color Picker Primitive
  • Combobox
  • Command
  • Context Menu
  • Copy Button
  • Countdown
  • Data Grid
  • Data Table
  • Date Picker
  • Date Range Picker
  • Description List
  • Device Mockup
  • Dialog
  • Direction
  • Dot Loader
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • File Icon
  • File Upload
  • Fill Blank
  • Form Guide
  • Hover Card
  • Icon Tile
  • Image Export
  • Input Group
  • Input OTP
  • Input
  • Item
  • Kanban
  • Kbd
  • Label
  • League Table
  • Marquee
  • Match Score
  • Menubar
  • Meter
  • Multi Select
  • Native Select
  • Navigation Menu
  • Number Field
  • Pagination
  • Password Strength
  • Person Avatar
  • Phone Input
  • Popover
  • Price
  • Product Card
  • Progress Circle
  • Progress
  • Radio Group
  • Rating
  • Resizable
  • Responsive Dialog
  • Rich Text Editor
  • Scroll Area
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Signature
  • Skeleton
  • Slider
  • Sonner
  • Sortable
  • Spinner
  • Stat Tabs
  • Stat
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Terminal
  • Textarea
  • Time Field
  • Timeline
  • Toggle Group
  • Toggle
  • Tooltip
  • Tree
  • Video Player
  • Window Mockup
AI
  • Message Scroller
  • Message
  • Bubble
  • Marker
  • Attachment
  • Questionnaire
  • Composer
  • Reasoning
  • Tool Call
  • Approval Card
  • Citations
  • Message Toolbar
Blocks
  • Airtable
  • Airtable Kanban
  • CRM
  • ClickUp List
  • ClickUp Kanban
  • Repeatable Group
  • Command Palette
  • App Shell
  • Record Files
  • Settings Shell
  • Help Panel
  • Note Editor
  • Email Drafts
  • Task List
  • Notifications Panel
  • Dual Pane Sidebar
  • Team Members Panel
  • Mix Pack Builder
  • Record Picker and Date Quick-pick
  • Record List
  • Record Page
  • Sign In and Sign Up
  • Availability Scheduler
  • AI Chat
  • AI Assistant
  • Voice Message
  • Action Bar
  • Notion
  • Banking
  • Lineup Builder
  • Sports Score
  • Standings
  • Strava
  • Sheets
  • Notices
  • Settings
  • Billing
Templates
  • Sign In Page
  • Upload Page
  • Showcase Onboarding
  • Agreement Sign
  • Email
  • Email Composer
  • Share Dialog
  • Integrations
  • Transactions
  • Analytics
Utilities
  • motion
  • sounds
  • scroll-fade
  • shimmer
Another UI. Built on shadcn/ui with Phosphor icons.

Team Members Panel

PreviousNext

The people on a team for a settings page or dialog. A heading with the count, an invite link row with a Copy button, and a member list where each person has a role menu. The list scrolls and fades at the bottom.

Team members

Manage team members and access to this team.

Invite via link

Share this link to invite people to this team.

anotherui.dev/team/sisyphus-ventures

Team members (12)

  • ML
    Mathilde LewisYou

    mathilde@example.com

  • LC
    Lily-Rose Chedjou

    lilyrose@example.com

  • CK
    Caitlyn King

    caitlyn@example.com

  • OS
    Olly Shroeder

    olly@example.com

  • MK
    Marco KellyPending

    marco@example.com

  • EC
    Ethan Campbell

    ethan@example.com

  • JW
    Jean White

    jean@example.com

  • PR
    Priya Raman

    priya@example.com

  • TL
    Tomas Lindqvist

    tomas@example.com

  • LS
    Lana Steiner

    lana@example.com

  • AF
    Ammar FoleyPending

    ammar@example.com

  • SH
    Sienna Hewitt

    sienna@example.com

Examples#

Dialog#

Read only#

Someone who is not an admin sees the roles and the link access as text, and Remove is hidden.

Team members

Manage team members and access to this team.

Invite via link

Share this link to invite people to this team.

Anyone with the link can join

anotherui.dev/team/sisyphus-ventures

Team members (12)

  • ML
    Mathilde LewisYou

    mathilde@example.com

    View access
  • LC
    Lily-Rose Chedjou

    lilyrose@example.com

    Admin
  • CK
    Caitlyn King

    caitlyn@example.com

    Edit access
  • OS
    Olly Shroeder

    olly@example.com

    Edit access
  • MK
    Marco KellyPending

    marco@example.com

    Edit access
  • EC
    Ethan Campbell

    ethan@example.com

    Edit access
  • JW
    Jean White

    jean@example.com

    View access
  • PR
    Priya Raman

    priya@example.com

    View access
  • TL
    Tomas Lindqvist

    tomas@example.com

    View access
  • LS
    Lana Steiner

    lana@example.com

    View access
  • AF
    Ammar FoleyPending

    ammar@example.com

    View access
  • SH
    Sienna Hewitt

    sienna@example.com

    View access

Installation#

pnpm dlx shadcn@latest add https://anotherui.dev/r/team-members-panel.json

Features#

  • Count in the heading. The list title shows how many people are on the team.
  • Invite link. A menu sets who can use the link. The address sits under it and Copy swaps to Copied.
  • Member rows. Avatar, name, email and a role menu. You and Pending show as badges. An avatar without a photo falls back to initials.
  • Safe roles. You and the last joined admin cannot be demoted or removed, so nobody locks the team out.
  • Undo. Remove from team shows a toast with Undo, which puts the person back before the next member. Mount a Toaster in your app for the toast to show.
  • Scrolls and fades. The list keeps its height and fades at the edge where there is more.
  • Panel or dialog. TeamMembersPanel fills a settings page. TeamMembersDialog puts the same content in a Dialog.

Usage#

Pass the list and save changes as they happen. Leave members out and pass defaultMembers instead if the panel should keep its own copy.

import { TeamMembersPanel } from "@/components/blocks/team-members-panel"
 
<TeamMembersPanel
  members={members}
  onMembersChange={setMembers}
  url="https://example.com/team/sisyphus"
  onRoleChange={(member, role) => save(member.id, role)}
  onRemove={(member) => remove(member.id)}
  onRestore={(member) => restore(member.id)}
/>

Put the same content in a Dialog with TeamMembersDialog. It takes every panel prop plus trigger, open, defaultOpen and onOpenChange. The dialog keeps the list and the link access while it is closed, so a role change is still there when it opens again.

import { TeamMembersDialog } from "@/components/blocks/team-members-panel"
 
<TeamMembersDialog
  trigger={<Button>Team members</Button>}
  defaultMembers={members}
  url={inviteUrl}
/>

Undo on the removal toast needs a Toaster mounted in your app. The toast closes with the panel, so Undo is never offered for a list that is not on screen.

Props#

  • members, onMembersChange. The list, { id, name, email, avatar?, role, you?, pending? }[]. onMembersChange gets the whole new list after a role change, a removal or an undo.
  • defaultMembers. The starting list when you do not control it.
  • linkAccess, defaultLinkAccess, onLinkAccessChange. anyone or invited, controlled or not.
  • roles. { id, label, hint? }[]. Defaults to Admin, Edit access and View access.
  • adminRole. The role id that manages the team. Defaults to admin. You and the last joined admin cannot be demoted or removed. Pending invites do not count.
  • canManage. Whether the signed-in person can change roles, remove people and change the link. It defaults to true only when the member marked you has the admin role, so it is false when nobody is marked. When false the roles and the link access show as text and Remove is hidden. Enforce it on the server too.
  • url. The invite link. Leave it out and the link row is hidden.
  • onRoleChange. Called with the member and the new role id. It does not run when the same role is picked again.
  • onRemove, onRestore. Passing onRemove adds Remove from team to each menu. onRestore runs when Undo is pressed.
  • onClose. Shows a close button in the heading.
  • inDialog. Uses the Dialog's title, description and close. TeamMembersDialog sets it.
  • listClassName, className. The list height before it scrolls, and the panel's own classes.
Dual Pane SidebarMix Pack Builder

On This Page

ExamplesDialogRead onlyInstallationFeaturesUsageProps