# Shadcn Team Roles

> Team members with roles and multiple actions

- Type: example, free and open source (MIT)
- Component: [Item](https://reui.io/components/item.md)
- Page: https://reui.io/components/item/c-item-9
- Docs (Base UI): https://ui.shadcn.com/docs/components/base/item.md
- Docs (Radix UI): https://ui.shadcn.com/docs/components/radix/item.md
- MCP: `get_example("c-item-9")`
- Registry item: https://reui.io/r/styles/base-nova/c-item-9.json
- Uses: Avatar, Badge, Button, Dropdown Menu, Item

## Best for

Member rows with email under the name, a role badge and a dots menu of Change Role, View Profile and Remove

## Agent notes

- `members` holds 3 sample people with a `roleVariant` each; load your team and map every role to a `Badge` variant
- Change Role, View Profile and Remove are `DropdownMenuItem` entries with no handler; attach your member actions to each

## When not to use

- A members roster compared across aligned columns of role and status: use [Table](https://reui.io/components/table.md) (`get_component("table")`)

## Install

```bash
npx shadcn@latest add @reui/c-item-9
```

## About Shadcn Item

### When to use

- Rows of people, files, services or events, each an avatar or icon beside text, a badge or a button
- Clickable menus of account pages, mailbox folders or commands, ending in a chevron, count or key
- A compact record card with a header and footer, such as a project with status, team and progress

### When not to use

- A finished dashboard panel of KPIs, transactions or integrations with data on every row: use the [List blocks](https://reui.io/blocks/application/list.md)
- A whole page of account options in labeled rows, each with its own switch, select or input: use the [Settings blocks](https://reui.io/blocks/application/settings.md)
- Rows the user reorders by dragging them up or down the page: use [Sortable](https://reui.io/components/sortable.md) (`get_component("sortable")`)

### Agent notes

- Make a row a link through `render` on the base twin or `asChild` on radix; every style draws the hover fill only when the row is an anchor
- `ItemGroup` sets `role` list but `Item` sets no listitem role, so wrap each row in an element that carries it
- `ItemTitle` clamps to 1 line and `ItemDescription` to 2, so longer text is cut off until a `className` lifts the clamp

Every ReUI item has a twin like this one; the index is https://reui.io/llms.txt. Agents with the ReUI MCP (https://reui.io/docs/mcp) get the same guidance from the getters named above.
