blockadminusersauth
User Management
Invite, edit, suspend, and assign roles. Pure UI with callbacks — wire auth/API in the host app.
pnpm dlx shadcn@latest add @fenod/user-managementDependencies
table, badge, button, dialog, dropdown-menu, field, input, select, checkbox
Usage
Pass users + roles. Implement onInvite/onSave/onSuspend/onDelete against Better Auth or your API.
| User | Roles | Status | Created | |
|---|---|---|---|---|
Jordan Lee jordan.lee@example.com | Admin | active | 2025-01-12 | |
Riley Chen riley.chen@example.com | EditorViewer | active | 2025-03-04 | |
Morgan Blake morgan.blake@example.com | Viewer | invited | 2026-03-01 | |
Casey Nguyen casey.nguyen@example.com | Editor | suspended | 2024-11-20 | |
Avery Patel avery.patel@example.com | Viewer | active | 2025-08-14 |