Assign Picker

Assignee picker for tasks and tickets: a listbox of people with initials avatars, where the selected person is highlighted and choices report their id.

src/registry/ui/assign-picker.tsx/r/assign-picker.json

Installation#

bash
npx shadcn@latest add @minidev/assign-picker

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/assign-picker.json

Usage#

tsx
import { AssignPicker } from "@/components/ui/assign-picker"

export function Example() {
  return (
    <AssignPicker value={assignee} onChange={setAssignee} people={[{ id: "1", name: "Aman" }, { id: "2", name: "Mina" }]} />
  )
}

API reference#

AssignPicker props
PropTypeDefault
peoplePerson[]SAMPLE_PEOPLE
valuestring-
defaultValuestring"theo"
onChange(id: string) => void-
classNamestring-

Dependencies#

npm

React only

Built from

Examples#

All kanban, timeline and workflow components

Learn more