Account Switcher — fixtures
ilinxa/account-switcher-fixturesFreeBlock
Account Switcher plus the dummy-data fixtures used by the docs-site demo.
Install it
npx shadcn@latest add https://ui.ilinxa.com/r/account-switcher-fixtures.jsonSource
1import { Building2, Globe, Settings2, ShieldCheck, User } from "lucide-react";2import type { SwitcherItem } from "./types";34/**5 * Realistic multi-context fixture covering all 5 categories from the6 * source's NavContext union (personal / business / platform / governance /7 * cms-business). Demonstrates dual-entry pattern (`biz-acme` + `cms-biz-acme`8 * share the conceptual account but have distinct keys per L3).9 */10export const ACCOUNT_SWITCHER_DUMMY_ITEMS: ReadonlyArray<SwitcherItem> = [11 {12 key: "personal",13 label: "Personal",14 icon: User,15 href: "/home",16 },17 {18 key: "biz-acme",19 label: "Acme Corp",20 icon: Building2,21 href: "/bconsole/acme/dashboard",22 },23 {24 key: "biz-globex",25 label: "Globex Industries",26 icon: Building2,27 href: "/bconsole/globex/dashboard",28 },29 {30 key: "cms-biz-acme",31 label: "Acme Corp · CMS",32 icon: Settings2,33 href: "/cconsole/business/acme/dashboard",34 },35 {36 key: "platform",37 label: "Platform",38 icon: Globe,39 href: "/pconsole/dashboard",40 },41 {42 key: "governance",43 label: "Governance",44 icon: ShieldCheck,45 href: "/gconsole/dashboard",46 },47];4849export const ACCOUNT_SWITCHER_DUMMY_ACTIVE_KEY: string | null = "biz-acme";5051/**52 * Fallback shown when the consumer-provided `activeKey` doesn't resolve to53 * any item (I-1; avoids the source's governance-mislabel bug). Demos use it54 * to show the trigger never crashes on bad input.55 */56export const ACCOUNT_SWITCHER_DUMMY_FALLBACK: SwitcherItem = {57 key: "fallback",58 label: "Select a context",59 icon: User,60};
What it pulls in
Other registry items
Files it writes
More from ilinxa
All 184 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Account Switcheraccount-switcher | ilinxa | Blocks | Free | 1 dep · 10 files | |
| Account Switcher (deprecated alias)account-switcher-01 | ilinxa | Blocks | Free | no deps | |
| App Sidebarapp-sidebar | ilinxa | Blocks | Free | 1 dep · 37 files | |
| App Sidebar — fixturesapp-sidebar-fixtures | ilinxa | Blocks | Free | no deps | |
| Rich Text Editor (deprecated alias)article-body-01 | ilinxa | Blocks | Free | no deps | |
| Article Metaarticle-meta | ilinxa | Blocks | Free | 1 dep · 4 files | |
| Article Meta (deprecated alias)article-meta-01 | ilinxa | Blocks | Free | no deps | |
| Article Meta — fixturesarticle-meta-fixtures | ilinxa | Blocks | Free | no deps |
