{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "app-shell-sidebar",
  "title": "App Shell, Sidebar Layout",
  "description": "An application shell with a left sidebar: workspace switcher, main navigation with badges and a sliding active highlight, a collapsible Projects group, Docs and Settings, a user menu, a top bar with breadcrumb, ⌘K search and a New button, a sidebar that collapses to icons, and an off-canvas drawer on phones.",
  "dependencies": [
    "motion",
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/app-shell-sidebar/app-shell-sidebar.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\nexport type ShellIcon = \"home\" | \"inbox\" | \"projects\" | \"calendar\" | \"reports\" | \"team\" | \"settings\" | \"help\" | \"docs\";\n\nexport interface ShellNavItem {\n  id: string;\n  label: string;\n  icon: ShellIcon;\n  badge?: number;\n}\n\nexport interface AppShellSidebarProps {\n  workspaces?: { id: string; name: string; plan: string; color: string }[];\n  nav?: ShellNavItem[];\n  projects?: { id: string; name: string; color: string }[];\n  user?: { name: string; email: string; avatar?: string };\n  /** Page content. A sample page is shown when empty. */\n  children?: React.ReactNode;\n  defaultCollapsed?: boolean;\n  theme?: \"dark\" | \"light\";\n  className?: string;\n}\n\nconst PALETTES = {\n  dark: { bg: \"#0A0A0A\", text: \"#F5F4F1\", muted: \"rgba(245,244,241,0.62)\", faint: \"rgba(245,244,241,0.36)\", side: \"#0E0E0E\", main: \"#121212\", border: \"rgba(255,255,255,0.08)\", chip: \"rgba(255,255,255,0.06)\", hover: \"rgba(255,255,255,0.045)\", active: \"rgba(255,255,255,0.08)\", skel: \"rgba(255,255,255,0.045)\", on: \"#F5F4F1\", onText: \"#0A0A0A\", accent: \"#FB923C\", ring: \"rgba(245,244,241,0.6)\", scrim: \"rgba(0,0,0,0.55)\", pop: \"#181818\", shadow: \"0 20px 50px -16px rgba(0,0,0,0.8)\" },\n  light: { bg: \"#F4F4F1\", text: \"#0A0A0A\", muted: \"rgba(10,10,10,0.62)\", faint: \"rgba(10,10,10,0.4)\", side: \"#FAFAF8\", main: \"#FFFFFF\", border: \"rgba(10,10,10,0.08)\", chip: \"rgba(10,10,10,0.05)\", hover: \"rgba(10,10,10,0.035)\", active: \"rgba(10,10,10,0.06)\", skel: \"rgba(10,10,10,0.05)\", on: \"#0A0A0A\", onText: \"#FAFAF8\", accent: \"#EA580C\", ring: \"rgba(10,10,10,0.5)\", scrim: \"rgba(10,10,10,0.3)\", pop: \"#FFFFFF\", shadow: \"0 20px 50px -20px rgba(0,0,0,0.25)\" },\n};\nconst ICONS: Record<ShellIcon, string> = {\n  home: \"M3 11 12 4l9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1v-9Z\",\n  inbox: \"M3 13h5l2 3h4l2-3h5M5 5h14l2 8v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-6l2-8Z\",\n  projects: \"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z\",\n  calendar: \"M8 3v3m8-3v3M4 9h16M5 6h14a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Z\",\n  reports: \"M4 20V10m6 10V4m6 16v-7m4 7H2\",\n  team: \"M16 19v-1a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v1M9 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm13 9v-1a4 4 0 0 0-3-3.9M16 4.1a3 3 0 0 1 0 5.8\",\n  settings: \"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.3l2-1.6-2-3.4-2.4 1a7 7 0 0 0-2.2-1.3L14.4 3h-4l-.4 2.4a7 7 0 0 0-2.2 1.3l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.6l-2 1.6 2 3.4 2.4-1a7 7 0 0 0 2.2 1.3l.4 2.4h4l.4-2.4a7 7 0 0 0 2.2-1.3l2.4 1 2-3.4-2-1.6c.1-.4.1-.9.1-1.3Z\",\n  help: \"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm-2.5-11.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6v.6m0 3.5h.01\",\n  docs: \"M14 3H6v18h12V7l-4-4Zm0 0v4h4M9 13h6m-6 4h4\",\n};\n\nconst DEFAULT_WORKSPACES = [\n  { id: \"w1\", name: \"Nexora\", plan: \"Business\", color: \"#FB923C\" },\n  { id: \"w2\", name: \"Halcyon Studio\", plan: \"Team\", color: \"#60A5FA\" },\n  { id: \"w3\", name: \"Side project\", plan: \"Free\", color: \"#4ADE80\" },\n];\nconst DEFAULT_NAV: ShellNavItem[] = [\n  { id: \"home\", label: \"Home\", icon: \"home\" },\n  { id: \"inbox\", label: \"Inbox\", icon: \"inbox\", badge: 4 },\n  { id: \"projects\", label: \"Projects\", icon: \"projects\" },\n  { id: \"calendar\", label: \"Calendar\", icon: \"calendar\" },\n  { id: \"reports\", label: \"Reports\", icon: \"reports\" },\n  { id: \"team\", label: \"Team\", icon: \"team\" },\n];\nconst DEFAULT_PROJECTS = [\n  { id: \"p1\", name: \"Website v3\", color: \"#FB923C\" },\n  { id: \"p2\", name: \"Mobile app\", color: \"#A78BFA\" },\n  { id: \"p3\", name: \"Brand refresh\", color: \"#4ADE80\" },\n];\nconst DEFAULT_USER = { name: \"Mara Okafor\", email: \"mara@nexora.io\", avatar: \"/demo/44.webp\" };\n\nfunction glyph(i: ShellIcon, size = 17) {\n  return (\n    <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n      <path d={ICONS[i]} />\n    </svg>\n  );\n}\n\nexport function AppShellSidebar({ workspaces = DEFAULT_WORKSPACES, nav = DEFAULT_NAV, projects = DEFAULT_PROJECTS, user = DEFAULT_USER, children, defaultCollapsed = false, theme = \"dark\", className }: AppShellSidebarProps) {\n  const p = PALETTES[theme];\n  const reduce = !!useReducedMotion();\n  const uid = React.useId();\n  const [collapsed, setCollapsed] = React.useState(defaultCollapsed);\n  const [mobileOpen, setMobileOpen] = React.useState(false);\n  const [active, setActive] = React.useState(\"home\");\n  const [ws, setWs] = React.useState(workspaces[0]?.id);\n  const [menu, setMenu] = React.useState<\"ws\" | \"user\" | null>(null);\n  const [projOpen, setProjOpen] = React.useState(true);\n  const shell = React.useRef<HTMLDivElement>(null);\n\n  React.useEffect(() => {\n    if (!menu && !mobileOpen) return;\n    const down = (e: MouseEvent) => {\n      if (!(e.target as HTMLElement).closest(\"[data-menu]\")) setMenu(null);\n    };\n    const key = (e: KeyboardEvent) => {\n      if (e.key === \"Escape\") {\n        setMenu(null);\n        setMobileOpen(false);\n      }\n    };\n    document.addEventListener(\"mousedown\", down);\n    document.addEventListener(\"keydown\", key);\n    return () => {\n      document.removeEventListener(\"mousedown\", down);\n      document.removeEventListener(\"keydown\", key);\n    };\n  }, [menu, mobileOpen]);\n\n  const workspace = workspaces.find((w) => w.id === ws) ?? workspaces[0];\n  const current = [...nav, ...projects.map((x) => ({ ...x, label: x.name }))].find((n) => n.id === active);\n  const ring = { [\"--tw-ring-color\" as string]: p.ring, [\"--tw-ring-offset-color\" as string]: p.side } as React.CSSProperties;\n  const focus = \"outline-none focus-visible:ring-2 focus-visible:ring-offset-2\";\n  const mini = collapsed && !mobileOpen;\n\n  const item = (id: string, label: string, icon: React.ReactNode, badge?: number) => {\n    const on = active === id;\n    return (\n      <li key={id}>\n        <button\n          type=\"button\"\n          onClick={() => {\n            setActive(id);\n            setMobileOpen(false);\n          }}\n          aria-current={on ? \"page\" : undefined}\n          title={mini ? label : undefined}\n          className={cn(\"group relative flex h-9 w-full cursor-pointer items-center gap-3 rounded-lg border-0 bg-transparent px-2.5 text-left text-[13.5px] transition-colors hover:bg-[var(--sh-h)]\", focus, mini && \"justify-center px-0\")}\n          style={{ color: on ? p.text : p.muted, [\"--sh-h\" as string]: p.hover, ...ring }}\n        >\n          {on && <motion.span layoutId={`${uid}-active`} className=\"absolute inset-0 rounded-lg\" style={{ background: p.active }} transition={reduce ? { duration: 0 } : { type: \"spring\", stiffness: 500, damping: 38 }} />}\n          <span className=\"relative shrink-0\">{icon}</span>\n          {!mini && <span className=\"relative min-w-0 flex-1 truncate\">{label}</span>}\n          {badge ? (\n            mini ? (\n              <span className=\"absolute top-1.5 right-2 h-2 w-2 rounded-full\" style={{ background: p.accent }} aria-label={`${badge} new`} />\n            ) : (\n              <span className=\"relative rounded-full px-1.5 text-[11px] font-semibold tabular-nums\" style={{ background: p.accent, color: \"#0A0A0A\" }}>\n                {badge}\n              </span>\n            )\n          ) : null}\n        </button>\n      </li>\n    );\n  };\n\n  const sidebar = (\n    <nav aria-label=\"Main\" className=\"flex h-full flex-col\">\n      {/* Workspace switcher */}\n      <div className=\"relative p-2.5\" data-menu>\n        <button type=\"button\" aria-haspopup=\"menu\" aria-expanded={menu === \"ws\"} onClick={() => setMenu(menu === \"ws\" ? null : \"ws\")} className={cn(\"flex w-full cursor-pointer items-center gap-2.5 rounded-lg border-0 bg-transparent p-1.5 text-left hover:bg-[var(--sh-h)]\", focus, mini && \"justify-center\")} style={{ color: p.text, [\"--sh-h\" as string]: p.hover, ...ring }} title={mini ? workspace.name : undefined}>\n          <span className=\"flex h-7 w-7 shrink-0 items-center justify-center rounded-lg text-[12px] font-bold\" style={{ background: workspace.color, color: \"#0A0A0A\" }}>\n            {workspace.name[0]}\n          </span>\n          {!mini && (\n            <>\n              <span className=\"min-w-0 flex-1\">\n                <span className=\"block truncate text-[13.5px] font-semibold\">{workspace.name}</span>\n                <span className=\"block text-[11.5px]\" style={{ color: p.faint }}>\n                  {workspace.plan}\n                </span>\n              </span>\n              <svg width=\"13\" height=\"13\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\" style={{ color: p.faint }}>\n                <path d=\"m5 6 3-3 3 3M5 10l3 3 3-3\" />\n              </svg>\n            </>\n          )}\n        </button>\n        <AnimatePresence>\n          {menu === \"ws\" && (\n            <motion.div initial={reduce ? false : { opacity: 0, y: -4 }} animate={{ opacity: 1, y: 0 }} exit={reduce ? undefined : { opacity: 0, y: -4 }} transition={{ duration: 0.14 }} className=\"absolute top-full left-2.5 z-30 mt-1 w-56 rounded-xl border p-1.5\" style={{ background: p.pop, borderColor: p.border, boxShadow: p.shadow }} role=\"menu\">\n              <p className=\"m-0 px-2 pt-1 pb-1.5 text-[11px]\" style={{ color: p.faint }}>\n                Workspaces\n              </p>\n              {workspaces.map((w) => (\n                <button\n                  key={w.id}\n                  type=\"button\"\n                  role=\"menuitemradio\"\n                  aria-checked={w.id === ws}\n                  onClick={() => {\n                    setWs(w.id);\n                    setMenu(null);\n                  }}\n                  className={cn(\"flex w-full cursor-pointer items-center gap-2.5 rounded-lg border-0 bg-transparent px-2 py-1.5 text-left text-[13px] hover:bg-[var(--sh-h)]\", focus)}\n                  style={{ color: p.text, [\"--sh-h\" as string]: p.hover, ...ring }}\n                >\n                  <span className=\"flex h-6 w-6 items-center justify-center rounded-md text-[11px] font-bold\" style={{ background: w.color, color: \"#0A0A0A\" }}>\n                    {w.name[0]}\n                  </span>\n                  <span className=\"flex-1\">{w.name}</span>\n                  {w.id === ws && (\n                    <svg width=\"13\" height=\"13\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                      <path d=\"m3 8.5 3 3 7-7\" />\n                    </svg>\n                  )}\n                </button>\n              ))}\n              <div className=\"my-1 h-px\" style={{ background: p.border }} />\n              <button type=\"button\" role=\"menuitem\" className={cn(\"flex w-full cursor-pointer items-center gap-2.5 rounded-lg border-0 bg-transparent px-2 py-1.5 text-left text-[13px] hover:bg-[var(--sh-h)]\", focus)} style={{ color: p.muted, [\"--sh-h\" as string]: p.hover, ...ring }}>\n                <span className=\"flex h-6 w-6 items-center justify-center rounded-md border border-dashed text-[13px]\" style={{ borderColor: p.faint }}>\n                  +\n                </span>\n                New workspace\n              </button>\n            </motion.div>\n          )}\n        </AnimatePresence>\n      </div>\n\n      <div className=\"min-h-0 flex-1 overflow-y-auto px-2.5\">\n        <ul className=\"m-0 flex list-none flex-col gap-0.5 p-0\">{nav.map((n) => item(n.id, n.label, glyph(n.icon), n.badge))}</ul>\n        <div className=\"mt-5\">\n          {!mini ? (\n            <button type=\"button\" aria-expanded={projOpen} onClick={() => setProjOpen((o) => !o)} className={cn(\"mb-1 flex w-full cursor-pointer items-center justify-between rounded-md border-0 bg-transparent px-2.5 py-1 text-[11.5px] font-medium tracking-wide uppercase\", focus)} style={{ color: p.faint, ...ring }}>\n              Projects\n              <motion.svg width=\"11\" height=\"11\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" animate={{ rotate: projOpen ? 0 : -90 }} aria-hidden=\"true\">\n                <path d=\"m4 6 4 4 4-4\" />\n              </motion.svg>\n            </button>\n          ) : (\n            <div className=\"mx-auto mb-2 h-px w-6\" style={{ background: p.border }} />\n          )}\n          <AnimatePresence initial={false}>\n            {(projOpen || mini) && (\n              <motion.ul initial={reduce ? false : { height: 0, opacity: 0 }} animate={{ height: \"auto\", opacity: 1 }} exit={reduce ? undefined : { height: 0, opacity: 0 }} className=\"m-0 flex list-none flex-col gap-0.5 overflow-hidden p-0\">\n                {projects.map((x) => item(x.id, x.name, <span className=\"flex h-[17px] w-[17px] items-center justify-center\"><span className=\"h-2.5 w-2.5 rounded-[3px]\" style={{ background: x.color }} /></span>))}\n              </motion.ul>\n            )}\n          </AnimatePresence>\n        </div>\n      </div>\n\n      <div className=\"border-t p-2.5\" style={{ borderColor: p.border }}>\n        <ul className=\"m-0 mb-1 flex list-none flex-col gap-0.5 p-0\">\n          {item(\"docs\", \"Docs\", glyph(\"docs\"))}\n          {item(\"settings\", \"Settings\", glyph(\"settings\"))}\n        </ul>\n        <div className=\"relative\" data-menu>\n          <button type=\"button\" aria-haspopup=\"menu\" aria-expanded={menu === \"user\"} onClick={() => setMenu(menu === \"user\" ? null : \"user\")} className={cn(\"flex w-full cursor-pointer items-center gap-2.5 rounded-lg border-0 bg-transparent p-1.5 text-left hover:bg-[var(--sh-h)]\", focus, mini && \"justify-center\")} style={{ color: p.text, [\"--sh-h\" as string]: p.hover, ...ring }} title={mini ? user.name : undefined}>\n            {user.avatar ? (\n              // eslint-disable-next-line @next/next/no-img-element\n              <img src={user.avatar} alt=\"\" className=\"h-7 w-7 shrink-0 rounded-full object-cover\" />\n            ) : (\n              <span className=\"flex h-7 w-7 items-center justify-center rounded-full text-[11px] font-semibold\" style={{ background: p.chip }}>\n                {user.name[0]}\n              </span>\n            )}\n            {!mini && (\n              <span className=\"min-w-0 flex-1\">\n                <span className=\"block truncate text-[13px] font-medium\">{user.name}</span>\n                <span className=\"block truncate text-[11.5px]\" style={{ color: p.faint }}>\n                  {user.email}\n                </span>\n              </span>\n            )}\n          </button>\n          <AnimatePresence>\n            {menu === \"user\" && (\n              <motion.div initial={reduce ? false : { opacity: 0, y: 4 }} animate={{ opacity: 1, y: 0 }} exit={reduce ? undefined : { opacity: 0, y: 4 }} transition={{ duration: 0.14 }} className=\"absolute bottom-full left-0 z-30 mb-1 w-52 rounded-xl border p-1.5\" style={{ background: p.pop, borderColor: p.border, boxShadow: p.shadow }} role=\"menu\">\n                {[\"Profile\", \"Keyboard shortcuts\", \"Billing\", \"Sign out\"].map((l) => (\n                  <button key={l} type=\"button\" role=\"menuitem\" onClick={() => setMenu(null)} className={cn(\"flex w-full cursor-pointer rounded-lg border-0 bg-transparent px-2.5 py-1.5 text-left text-[13px] hover:bg-[var(--sh-h)]\", focus)} style={{ color: l === \"Sign out\" ? \"#F87171\" : p.text, [\"--sh-h\" as string]: p.hover, ...ring }}>\n                    {l}\n                  </button>\n                ))}\n              </motion.div>\n            )}\n          </AnimatePresence>\n        </div>\n      </div>\n    </nav>\n  );\n\n  return (\n    <section className={cn(\"@container w-full\", className)} style={{ background: p.bg, color: p.text }}>\n      <div className=\"mx-auto max-w-6xl px-4 py-10 @[640px]:px-6 @[640px]:py-14\">\n        <div ref={shell} className=\"relative flex h-[620px] overflow-hidden rounded-2xl border\" style={{ background: p.main, borderColor: p.border }}>\n          {/* Desktop sidebar */}\n          <motion.aside className=\"hidden shrink-0 border-r @[760px]:block\" style={{ background: p.side, borderColor: p.border }} initial={false} animate={{ width: collapsed ? 64 : 240 }} transition={reduce ? { duration: 0 } : { type: \"spring\", stiffness: 380, damping: 38 }}>\n            {sidebar}\n          </motion.aside>\n\n          {/* Mobile drawer */}\n          <AnimatePresence>\n            {mobileOpen && (\n              <>\n                <motion.button type=\"button\" aria-label=\"Close menu\" className=\"absolute inset-0 z-20 cursor-default border-0 @[760px]:hidden\" style={{ background: p.scrim }} initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} onClick={() => setMobileOpen(false)} />\n                <motion.aside className=\"absolute inset-y-0 left-0 z-30 w-[260px] border-r @[760px]:hidden\" style={{ background: p.side, borderColor: p.border }} initial={reduce ? false : { x: -280 }} animate={{ x: 0 }} exit={reduce ? undefined : { x: -280 }} transition={{ type: \"spring\", stiffness: 400, damping: 40 }} aria-label=\"Menu\">\n                  {sidebar}\n                </motion.aside>\n              </>\n            )}\n          </AnimatePresence>\n\n          {/* Main */}\n          <div className=\"flex min-w-0 flex-1 flex-col\">\n            <header className=\"flex h-14 shrink-0 items-center gap-2 border-b px-3 @[640px]:px-4\" style={{ borderColor: p.border }}>\n              <button type=\"button\" aria-label=\"Open menu\" onClick={() => setMobileOpen(true)} className={cn(\"flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg border-0 bg-transparent @[760px]:hidden\", focus)} style={{ color: p.muted, ...ring }}>\n                <svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" aria-hidden=\"true\">\n                  <path d=\"M4 7h16M4 12h16M4 17h16\" />\n                </svg>\n              </button>\n              <button type=\"button\" aria-label={collapsed ? \"Expand sidebar\" : \"Collapse sidebar\"} aria-pressed={collapsed} onClick={() => setCollapsed((c) => !c)} className={cn(\"hidden h-8 w-8 cursor-pointer items-center justify-center rounded-lg border-0 bg-transparent @[760px]:flex\", focus)} style={{ color: p.muted, ...ring }}>\n                <svg width=\"17\" height=\"17\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                  <rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\" />\n                  <path d=\"M9 4v16\" />\n                </svg>\n              </button>\n              <nav aria-label=\"Breadcrumb\" className=\"min-w-0 flex-1\">\n                <ol className=\"m-0 flex list-none items-center gap-1.5 p-0 text-[13.5px]\">\n                  <li className=\"hidden truncate @[480px]:block\" style={{ color: p.faint }}>\n                    {workspace.name}\n                  </li>\n                  <li className=\"hidden @[480px]:block\" style={{ color: p.faint }} aria-hidden=\"true\">\n                    /\n                  </li>\n                  <li className=\"truncate font-medium\" aria-current=\"page\">\n                    {current?.label ?? \"Home\"}\n                  </li>\n                </ol>\n              </nav>\n              <label className=\"relative hidden w-56 @[640px]:block\">\n                <span className=\"sr-only\">Search</span>\n                <svg className=\"pointer-events-none absolute top-1/2 left-3 -translate-y-1/2\" width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" aria-hidden=\"true\" style={{ color: p.faint }}>\n                  <circle cx=\"11\" cy=\"11\" r=\"7\" />\n                  <path d=\"m20 20-3.5-3.5\" />\n                </svg>\n                <input type=\"search\" placeholder=\"Search\" className={cn(\"h-8 w-full rounded-lg border pr-12 pl-8 text-[13px]\", focus)} style={{ borderColor: p.border, background: \"transparent\", color: p.text, ...ring }} />\n                <kbd className=\"pointer-events-none absolute top-1/2 right-2 -translate-y-1/2 rounded border px-1 font-mono text-[10.5px]\" style={{ borderColor: p.border, color: p.faint }}>\n                  ⌘K\n                </kbd>\n              </label>\n              <button type=\"button\" className={cn(\"h-8 cursor-pointer rounded-lg border-0 px-3 text-[12.5px] font-medium\", focus)} style={{ background: p.on, color: p.onText, ...ring }}>\n                New\n              </button>\n            </header>\n            <main className=\"min-h-0 flex-1 overflow-y-auto p-4 @[640px]:p-6\">\n              {children ?? (\n                <AnimatePresence mode=\"wait\" initial={false}>\n                  <motion.div key={active} initial={reduce ? false : { opacity: 0, y: 6 }} animate={{ opacity: 1, y: 0 }} exit={reduce ? undefined : { opacity: 0 }} transition={{ duration: 0.18 }}>\n                    <h1 className=\"m-0 text-[22px] font-semibold tracking-[-0.02em]\">{current?.label ?? \"Home\"}</h1>\n                    <p className=\"m-0 mt-1 text-[13.5px]\" style={{ color: p.muted }}>\n                      Your page content goes here.\n                    </p>\n                    <div className=\"mt-6 grid gap-3 @[640px]:grid-cols-3\" aria-hidden=\"true\">\n                      {[0, 1, 2].map((i) => (\n                        <div key={i} className=\"h-24 rounded-xl\" style={{ background: p.skel }} />\n                      ))}\n                      <div className=\"h-60 rounded-xl @[640px]:col-span-2\" style={{ background: p.skel }} />\n                      <div className=\"h-60 rounded-xl\" style={{ background: p.skel }} />\n                    </div>\n                  </motion.div>\n                </AnimatePresence>\n              )}\n            </main>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n\nexport default AppShellSidebar;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}