Role Picker

Team role picker built on the radio group, offering Owner, Admin and Member options with linked labels. Drop it into invite dialogs and member settings forms.

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

Installation#

bash
npx shadcn@latest add @minidev/role-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/role-picker.json

Usage#

tsx
import { RolePicker } from "@/components/ui/role-picker"

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

API reference#

RolePicker props
PropTypeDefault
classNamestring-

Dependencies#

npm

React only
All settings page components