User Chip

React user chip showing a small avatar with initials fallback and the person's name, plus an optional remove button. Good for assignees, mentions and pickers.

src/registry/ui/user-chip.tsx/r/user-chip.json

Installation#

bash
npx shadcn@latest add @minidev/user-chip

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/user-chip.json

Usage#

tsx
import { UserChip } from "@/components/ui/user-chip"

export function Example() {
  return <UserChip />
}

API reference#

UserChip props
PropTypeDefault
namestring"Maya Chen"
srcstring-
onRemove() => void-
classNamestring-

Dependencies#

npm

lucide-react

Built from

All form components

Learn more