# Assignee Picker

> The inline assignee control from issue trackers: a bare avatar for list rows or an avatar-and-name chip for property panels, opening a searchable list of people. You come first, then suggested people and the team, with presence dots and notes like "Away until Mon". Single mode picks and closes; multiple stacks avatars and can cap picks. Press i to assign yourself.

- Slug: `assignee-picker`
- Category: [Selects](https://www.assembli.design/category/selects.md)
- Type: component
- Tags: assignee, people-picker, combobox, avatar, multi-select, issue-tracker
- npm dependencies: @base-ui/react, lucide-react
- shadcn/ui dependencies: none
- Live preview: https://www.assembli.design/preview/assignee-picker
- Page: https://www.assembli.design/components/assignee-picker

![Assignee Picker preview](https://www.assembli.design/thumbnails/assignee-picker-light.png)

## Props

Other props pass through to the root element.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `people` (required) | `Person[]` |  |  |
| `me` | `string` |  | The signed-in person's id. They're listed first, marked "You", and `i` assigns them while the popup is open. |
| `suggested` | `string[]` |  | Ids to list under Suggested after you, such as recent assignees or the code owner. |
| `variant` | `"avatar" \| "chip"` |  | `avatar` is a bare avatar for list rows; `chip` adds the name, for property panels. |
| `size` | `"sm" \| "md"` |  |  |
| `label` | `string` |  | What's being assigned, used in labels: "Assignee", "Reviewers". |
| `placeholder` | `string` |  | Shown when nobody is picked. |
| `open` | `boolean` |  |  |
| `defaultOpen` | `boolean` |  |  |
| `onOpenChange` | `(open: boolean) => void` |  |  |
| `disabled` | `boolean` |  |  |
| `align` | `"start" \| "center" \| "end"` |  |  |
| `className` | `string` |  |  |

## Install

One-time setup (needs a subscription):

1. Add the registry to the project's `components.json`: `{"@assembli":{"url":"https://www.assembli.design/r/{name}.json","headers":{"Authorization":"Bearer ${ASSEMBLI_API_KEY}"}}}` (merge into `"registries"`).
2. Put an API key from https://www.assembli.design/account in `.env.local` as `ASSEMBLI_API_KEY=asm_…`.

Then install with the shadcn CLI (writes `components/assignee-picker/assignee-picker.tsx` and installs dependencies):

```bash
npx shadcn@latest add @assembli/assignee-picker
```

Registry item JSON: https://www.assembli.design/r/assignee-picker.json (send `Authorization: Bearer <api key>`)

## Code

> Component source needs an Assembli subscription ($12/month or $96/year) and an API key sent as `Authorization: Bearer <key>`. To get one without copying anything, POST https://www.assembli.design/api/agent/login (or call the MCP tool connect_account), show the user the link it returns, and poll https://www.assembli.design/api/agent/token for the key. Or subscribe at https://www.assembli.design/pricing and create a key at https://www.assembli.design/account.
