Project Switcher
ui-codarise/project-switcherUnverifiedBlock
A compact project picker for a sidebar / top nav. Combobox trigger shows the current project's avatar + name (or a 'Select Project' fallback); popover opens a searchable Command list of projects with member count + inactive badge, plus a 'View all Projects' action. Renders a loading skeleton while loading and a dashed empty state with a 'Create Project' button when there are no projects. Framework-agnostic and data-driven — no router or project-context coupling. Wire onSelectProject / onViewAllProjects / onCreateProject to your app's navigation + context store. Ported from fe-agentic's Project
Install it
npx shadcn@latest add https://raw.githubusercontent.com/codarise/ui/main/registry/blocks/project-switcher.jsonThis registry does not serve an item endpoint we could read, so we hold its metadata but not its source.
What it pulls in
npm packages
Other registry items
Files it writes
More from ui
All 16 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Bento Cardbento-card | ui | Blocks | Unverified | no deps | |
| Chat Bubblechat-bubble | ui | Blocks | Unverified | no deps | |
| Chat Markerchat-marker | ui | Blocks | Unverified | no deps | |
| Chat Message Rowchat-message-row | ui | Blocks | Unverified | no deps | |
| Domain / Tenant Switcherdomain-tenant-switcher | ui | Blocks | Unverified | 1 dep · 6 files | |
| Error Stateerror-state | ui | Blocks | Unverified | 1 dep | |
| Featured Cardfeatured-card | ui | Blocks | Unverified | no deps | |
| Loading Stateloading-state | ui | Blocks | Unverified | no deps |
