{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "vertical-navigation",
  "title": "Vertical Navigation",
  "description": "A documentation-style vertical navigation with collapsible sections, nested pages on a guide line, a sliding active pill and marker, a filter that highlights matches (press /), arrow-key movement, and a content pane with breadcrumbs and previous / next links. On phones it folds into a menu button that shows the current page.",
  "dependencies": [
    "motion",
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/vertical-navigation/vertical-navigation.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 interface VerticalNavPage {\n  id: string;\n  title: string;\n  description: string;\n  badge?: string;\n  children?: VerticalNavPage[];\n}\nexport interface VerticalNavSection {\n  id: string;\n  title: string;\n  icon: \"book\" | \"database\" | \"lock\" | \"card\";\n  pages: VerticalNavPage[];\n}\n\nexport interface VerticalNavigationProps {\n  sections?: VerticalNavSection[];\n  defaultPage?: string;\n  onNavigate?: (pageId: string) => void;\n  theme?: \"dark\" | \"light\";\n  className?: string;\n}\n\nconst PALETTES = {\n  dark: {\n    bg: \"#0A0A0A\",\n    text: \"#F5F4F1\",\n    muted: \"rgba(245,244,241,0.62)\",\n    faint: \"rgba(245,244,241,0.38)\",\n    panel: \"#0E0E0E\",\n    card: \"#121212\",\n    border: \"rgba(255,255,255,0.08)\",\n    pill: \"rgba(255,255,255,0.07)\",\n    line: \"rgba(255,255,255,0.1)\",\n    marker: \"#F5F4F1\",\n    mark: \"rgba(250,204,21,0.28)\",\n    accent: \"#60A5FA\",\n    ring: \"rgba(245,244,241,0.6)\",\n  },\n  light: {\n    bg: \"#FAFAF8\",\n    text: \"#0A0A0A\",\n    muted: \"rgba(10,10,10,0.62)\",\n    faint: \"rgba(10,10,10,0.42)\",\n    panel: \"#F4F4F1\",\n    card: \"#FFFFFF\",\n    border: \"rgba(10,10,10,0.09)\",\n    pill: \"rgba(10,10,10,0.06)\",\n    line: \"rgba(10,10,10,0.12)\",\n    marker: \"#0A0A0A\",\n    mark: \"rgba(250,204,21,0.45)\",\n    accent: \"#2563EB\",\n    ring: \"rgba(10,10,10,0.5)\",\n  },\n};\n\nconst SECTIONS: VerticalNavSection[] = [\n  {\n    id: \"start\",\n    title: \"Getting started\",\n    icon: \"book\",\n    pages: [\n      {\n        id: \"intro\",\n        title: \"Introduction\",\n        description:\n          \"What Nexora is, how projects, databases and branches fit together, and where to go next.\",\n      },\n      {\n        id: \"quickstart\",\n        title: \"Quickstart\",\n        description:\n          \"Create a project, connect your first database and run a query in under five minutes.\",\n      },\n      {\n        id: \"cli\",\n        title: \"Install the CLI\",\n        description:\n          \"Install the nexora command line tool, sign in and link a local folder to a project.\",\n        badge: \"New\",\n      },\n    ],\n  },\n  {\n    id: \"db\",\n    title: \"Databases\",\n    icon: \"database\",\n    pages: [\n      {\n        id: \"create-db\",\n        title: \"Create a database\",\n        description:\n          \"Pick a plan, region and compute size, then copy the connection string into your app.\",\n      },\n      {\n        id: \"branching\",\n        title: \"Branching\",\n        description:\n          \"Branches are instant copies of a database for previews, tests and safe migrations.\",\n        children: [\n          {\n            id: \"create-branch\",\n            title: \"Create a branch\",\n            description:\n              \"Branch from production or any point in time, from the dashboard, CLI or API.\",\n          },\n          {\n            id: \"merge-branch\",\n            title: \"Merge a branch\",\n            description:\n              \"Review a schema diff and merge a branch's migrations back into its parent.\",\n          },\n          {\n            id: \"branch-limits\",\n            title: \"Branch limits\",\n            description:\n              \"How many branches each plan includes and how idle branches are paused.\",\n          },\n        ],\n      },\n      {\n        id: \"backups\",\n        title: \"Backups\",\n        description:\n          \"Daily snapshots on every plan and point-in-time restore on Pro and Team.\",\n      },\n      {\n        id: \"pooling\",\n        title: \"Connection pooling\",\n        description:\n          \"Use the pooled endpoint for serverless functions that open many short connections.\",\n      },\n    ],\n  },\n  {\n    id: \"auth\",\n    title: \"Auth\",\n    icon: \"lock\",\n    pages: [\n      {\n        id: \"auth-overview\",\n        title: \"Overview\",\n        description:\n          \"Add sign in to your app with users, sessions and roles stored next to your data.\",\n      },\n      {\n        id: \"passwords\",\n        title: \"Email and password\",\n        description:\n          \"Sign up, sign in, email verification and password reset flows.\",\n      },\n      {\n        id: \"magic\",\n        title: \"Magic links\",\n        description: \"Passwordless sign in with a one-time link sent by email.\",\n      },\n      {\n        id: \"sso\",\n        title: \"Single sign-on\",\n        description:\n          \"Connect SAML or OIDC identity providers for your whole organization.\",\n        badge: \"Team\",\n      },\n    ],\n  },\n  {\n    id: \"billing\",\n    title: \"Billing\",\n    icon: \"card\",\n    pages: [\n      {\n        id: \"plans\",\n        title: \"Plans\",\n        description:\n          \"What each plan includes and how to move between them at any time.\",\n      },\n      {\n        id: \"invoices\",\n        title: \"Invoices\",\n        description:\n          \"Download invoices, change the billing email and add tax details.\",\n      },\n      {\n        id: \"limits\",\n        title: \"Usage limits\",\n        description:\n          \"Set spend caps and alerts so a busy month never surprises you.\",\n      },\n    ],\n  },\n];\n\nconst ICONS: Record<VerticalNavSection[\"icon\"], string> = {\n  book: \"M4 19V5a2 2 0 0 1 2-2h14v14H6a2 2 0 0 0-2 2Zm0 0a2 2 0 0 0 2 2h14M8 7h8\",\n  database:\n    \"M4 6c0-1.7 3.6-3 8-3s8 1.3 8 3-3.6 3-8 3-8-1.3-8-3Zm0 0v12c0 1.7 3.6 3 8 3s8-1.3 8-3V6M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3\",\n  lock: \"M6 11h12v10H6zM8 11V8a4 4 0 0 1 8 0v3\",\n  card: \"M3 6h18v12H3zM3 10h18M7 15h3\",\n};\n\ntype Flat = {\n  page: VerticalNavPage;\n  section: VerticalNavSection;\n  parent?: VerticalNavPage;\n};\nconst flatten = (sections: VerticalNavSection[]) =>\n  sections.flatMap((s) =>\n    s.pages.flatMap((pg) => [\n      { page: pg, section: s } as Flat,\n      ...(pg.children ?? []).map(\n        (c) => ({ page: c, section: s, parent: pg }) as Flat,\n      ),\n    ]),\n  );\n\nfunction highlight(text: string, q: string, mark: string) {\n  if (!q) return text;\n  const i = text.toLowerCase().indexOf(q.toLowerCase());\n  if (i < 0) return text;\n  return (\n    <>\n      {text.slice(0, i)}\n      <mark\n        className=\"rounded-[3px] px-px text-inherit\"\n        style={{ background: mark }}\n      >\n        {text.slice(i, i + q.length)}\n      </mark>\n      {text.slice(i + q.length)}\n    </>\n  );\n}\n\nexport function VerticalNavigation({\n  sections = SECTIONS,\n  defaultPage = \"create-branch\",\n  onNavigate,\n  theme = \"dark\",\n  className,\n}: VerticalNavigationProps) {\n  const p = PALETTES[theme];\n  const reduce = !!useReducedMotion();\n  const uid = React.useId();\n  const flat = React.useMemo(() => flatten(sections), [sections]);\n  const [active, setActive] = React.useState(defaultPage);\n  const [query, setQuery] = React.useState(\"\");\n  const [collapsed, setCollapsed] = React.useState<Record<string, boolean>>({});\n  const [openPages, setOpenPages] = React.useState<Record<string, boolean>>(\n    () => {\n      const f = flatten(sections).find((x) => x.page.id === defaultPage);\n      return f?.parent ? { [f.parent.id]: true } : {};\n    },\n  );\n  const [mobileOpen, setMobileOpen] = React.useState(false);\n  const navRef = React.useRef<HTMLElement>(null);\n  const filterRef = React.useRef<HTMLInputElement>(null);\n\n  const current = flat.find((x) => x.page.id === active) ?? flat[0];\n  const index = flat.indexOf(current);\n  const prev = flat[index - 1];\n  const next = flat[index + 1];\n  const q = query.trim();\n  const matches = (pg: VerticalNavPage) =>\n    !q || pg.title.toLowerCase().includes(q.toLowerCase());\n  const visiblePages = (s: VerticalNavSection) =>\n    s.pages.filter((pg) => matches(pg) || (pg.children ?? []).some(matches));\n  const anyMatch = sections.some((s) => visiblePages(s).length > 0);\n\n  React.useEffect(() => {\n    const onKey = (e: KeyboardEvent) => {\n      const t = e.target as HTMLElement;\n      if (\n        e.key !== \"/\" ||\n        t.closest(\"input, textarea, select, [contenteditable=true]\")\n      )\n        return;\n      e.preventDefault();\n      setMobileOpen(true);\n      requestAnimationFrame(() => filterRef.current?.focus());\n    };\n    document.addEventListener(\"keydown\", onKey);\n    return () => document.removeEventListener(\"keydown\", onKey);\n  }, []);\n\n  const go = (id: string) => {\n    const f = flat.find((x) => x.page.id === id);\n    if (!f) return;\n    setActive(id);\n    if (f.parent) setOpenPages((o) => ({ ...o, [f.parent!.id]: true }));\n    setCollapsed((c) => ({ ...c, [f.section.id]: false }));\n    setMobileOpen(false);\n    onNavigate?.(id);\n  };\n\n  const onNavKey = (e: React.KeyboardEvent) => {\n    if (\n      ![\"ArrowDown\", \"ArrowUp\", \"Home\", \"End\"].includes(e.key) ||\n      !navRef.current\n    )\n      return;\n    const items = [\n      ...navRef.current.querySelectorAll<HTMLElement>(\"[data-nav-item]\"),\n    ];\n    const i = items.indexOf(document.activeElement as HTMLElement);\n    if (i < 0) return;\n    e.preventDefault();\n    const n =\n      e.key === \"Home\"\n        ? 0\n        : e.key === \"End\"\n          ? items.length - 1\n          : (i + (e.key === \"ArrowDown\" ? 1 : -1) + items.length) %\n            items.length;\n    items[n]?.focus();\n  };\n\n  const ring = {\n    [\"--tw-ring-color\" as string]: p.ring,\n    [\"--tw-ring-offset-color\" as string]: p.panel,\n  } as React.CSSProperties;\n  const focus = \"outline-none focus-visible:ring-2 focus-visible:ring-offset-2\";\n  const spring = reduce\n    ? { duration: 0 }\n    : { type: \"spring\" as const, stiffness: 520, damping: 40 };\n  const fold = {\n    initial: reduce ? false : { height: 0, opacity: 0 },\n    animate: { height: \"auto\", opacity: 1 },\n    exit: reduce ? undefined : { height: 0, opacity: 0 },\n    transition: { duration: 0.2 },\n  } as const;\n  const chevron = (open: boolean) => (\n    <motion.svg\n      width=\"12\"\n      height=\"12\"\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke=\"currentColor\"\n      strokeWidth=\"2.2\"\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      initial={false}\n      animate={{ rotate: open ? 90 : 0 }}\n      transition={{ duration: reduce ? 0 : 0.18 }}\n      aria-hidden=\"true\"\n    >\n      <path d=\"m9 6 6 6-6 6\" />\n    </motion.svg>\n  );\n  const badge = (b?: string) =>\n    b && (\n      <span\n        className=\"ml-auto shrink-0 rounded-full px-1.5 py-px text-[10.5px] font-medium\"\n        style={{ background: `${p.accent}22`, color: p.accent }}\n      >\n        {b}\n      </span>\n    );\n\n  const nav = (\n    <nav\n      ref={navRef}\n      aria-label=\"Documentation\"\n      onKeyDown={onNavKey}\n      className=\"flex min-w-0 flex-col gap-1\"\n    >\n      <div className=\"relative mb-3\">\n        <svg\n          className=\"pointer-events-none absolute top-1/2 left-2.5 -translate-y-1/2\"\n          width=\"14\"\n          height=\"14\"\n          viewBox=\"0 0 24 24\"\n          fill=\"none\"\n          stroke={p.faint}\n          strokeWidth=\"2\"\n          strokeLinecap=\"round\"\n          aria-hidden=\"true\"\n        >\n          <circle cx=\"11\" cy=\"11\" r=\"7\" />\n          <path d=\"m20 20-3.5-3.5\" />\n        </svg>\n        <label htmlFor={`${uid}-filter`} className=\"sr-only\">\n          Filter pages\n        </label>\n        <input\n          ref={filterRef}\n          id={`${uid}-filter`}\n          value={query}\n          onChange={(e) => setQuery(e.target.value)}\n          onKeyDown={(e) => {\n            if (e.key === \"Escape\") setQuery(\"\");\n            if (e.key === \"ArrowDown\") {\n              e.preventDefault();\n              e.stopPropagation();\n              navRef.current\n                ?.querySelector<HTMLElement>(\"[data-nav-item]\")\n                ?.focus();\n            }\n          }}\n          placeholder=\"Filter pages\"\n          autoComplete=\"off\"\n          className={cn(\n            \"h-9 w-full rounded-lg border pr-9 pl-8 text-[13px]\",\n            focus,\n          )}\n          style={{\n            borderColor: p.border,\n            background: p.card,\n            color: p.text,\n            ...ring,\n          }}\n        />\n        <kbd\n          className=\"pointer-events-none absolute top-1/2 right-2 -translate-y-1/2 rounded border px-1.5 font-sans text-[11px]\"\n          style={{ borderColor: p.border, color: p.faint }}\n        >\n          /\n        </kbd>\n      </div>\n      {!anyMatch && (\n        <p\n          className=\"m-0 px-2 py-6 text-center text-[13px]\"\n          style={{ color: p.faint }}\n          role=\"status\"\n        >\n          No pages match “{q}”\n        </p>\n      )}\n      {sections.map((s) => {\n        const pages = visiblePages(s);\n        if (!pages.length) return null;\n        const open = q ? true : !collapsed[s.id];\n        return (\n          <div key={s.id} className=\"mb-1\">\n            <button\n              type=\"button\"\n              data-nav-item\n              onClick={() => setCollapsed((c) => ({ ...c, [s.id]: open }))}\n              aria-expanded={open}\n              className={cn(\n                \"flex w-full cursor-pointer items-center gap-2 rounded-md border-0 bg-transparent px-2 py-1.5 text-left text-[12px] font-semibold tracking-[0.04em] uppercase\",\n                focus,\n              )}\n              style={{ color: p.faint, ...ring }}\n            >\n              <svg\n                width=\"14\"\n                height=\"14\"\n                viewBox=\"0 0 24 24\"\n                fill=\"none\"\n                stroke=\"currentColor\"\n                strokeWidth=\"1.8\"\n                strokeLinecap=\"round\"\n                strokeLinejoin=\"round\"\n                aria-hidden=\"true\"\n              >\n                <path d={ICONS[s.icon]} />\n              </svg>\n              <span className=\"flex-1\">{s.title}</span>\n              {chevron(open)}\n            </button>\n            <AnimatePresence initial={false}>\n              {open && (\n                <motion.ul\n                  key=\"list\"\n                  {...fold}\n                  className=\"m-0 list-none overflow-hidden p-0\"\n                >\n                  {pages.map((pg) => {\n                    const kids = (pg.children ?? []).filter(\n                      (c) => matches(c) || matches(pg),\n                    );\n                    const hasKids = !!pg.children?.length;\n                    const kidsOpen =\n                      hasKids && (q ? kids.length > 0 : !!openPages[pg.id]);\n                    const isActive = active === pg.id;\n                    const childActive = pg.children?.some(\n                      (c) => c.id === active,\n                    );\n                    return (\n                      <li key={pg.id} className=\"mt-0.5\">\n                        <div className=\"relative flex items-center\">\n                          {isActive && (\n                            <motion.span\n                              layoutId={`${uid}-pill`}\n                              className=\"absolute inset-0 rounded-lg\"\n                              style={{ background: p.pill }}\n                              transition={spring}\n                            />\n                          )}\n                          <button\n                            type=\"button\"\n                            data-nav-item\n                            onClick={() => go(pg.id)}\n                            aria-current={isActive ? \"page\" : undefined}\n                            className={cn(\n                              \"relative flex min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-lg border-0 bg-transparent py-1.5 pr-2 pl-[30px] text-left text-[13.5px]\",\n                              focus,\n                            )}\n                            style={{\n                              color: isActive || childActive ? p.text : p.muted,\n                              fontWeight: isActive ? 500 : 400,\n                              ...ring,\n                            }}\n                          >\n                            <span className=\"truncate\">\n                              {highlight(pg.title, q, p.mark)}\n                            </span>\n                            {badge(pg.badge)}\n                          </button>\n                          {hasKids && (\n                            <button\n                              type=\"button\"\n                              data-nav-item\n                              onClick={() =>\n                                setOpenPages((o) => ({\n                                  ...o,\n                                  [pg.id]: !kidsOpen,\n                                }))\n                              }\n                              aria-expanded={kidsOpen}\n                              aria-label={`${kidsOpen ? \"Collapse\" : \"Expand\"} ${pg.title}`}\n                              className={cn(\n                                \"relative mr-1 grid h-6 w-6 shrink-0 cursor-pointer place-items-center rounded-md border-0 bg-transparent\",\n                                focus,\n                              )}\n                              style={{ color: p.faint, ...ring }}\n                            >\n                              {chevron(kidsOpen)}\n                            </button>\n                          )}\n                        </div>\n                        <AnimatePresence initial={false}>\n                          {kidsOpen && (\n                            <motion.ul\n                              key=\"kids\"\n                              {...fold}\n                              className=\"relative m-0 ml-[30px] list-none overflow-hidden p-0\"\n                            >\n                              <span\n                                className=\"absolute top-1 bottom-1 left-0 w-px\"\n                                style={{ background: p.line }}\n                                aria-hidden=\"true\"\n                              />\n                              {kids.map((c) => {\n                                const on = active === c.id;\n                                return (\n                                  <li key={c.id} className=\"relative\">\n                                    {on && (\n                                      <motion.span\n                                        layoutId={`${uid}-marker`}\n                                        className=\"absolute top-1 bottom-1 left-0 w-[2px] rounded-full\"\n                                        style={{ background: p.marker }}\n                                        transition={spring}\n                                      />\n                                    )}\n                                    <button\n                                      type=\"button\"\n                                      data-nav-item\n                                      onClick={() => go(c.id)}\n                                      aria-current={on ? \"page\" : undefined}\n                                      className={cn(\n                                        \"flex w-full cursor-pointer items-center gap-2 rounded-md border-0 bg-transparent py-1.5 pr-2 pl-3.5 text-left text-[13px]\",\n                                        focus,\n                                      )}\n                                      style={{\n                                        color: on ? p.text : p.muted,\n                                        fontWeight: on ? 500 : 400,\n                                        ...ring,\n                                      }}\n                                    >\n                                      <span className=\"truncate\">\n                                        {highlight(c.title, q, p.mark)}\n                                      </span>\n                                      {badge(c.badge)}\n                                    </button>\n                                  </li>\n                                );\n                              })}\n                            </motion.ul>\n                          )}\n                        </AnimatePresence>\n                      </li>\n                    );\n                  })}\n                </motion.ul>\n              )}\n            </AnimatePresence>\n          </div>\n        );\n      })}\n    </nav>\n  );\n\n  const crumbs = [\n    current.section.title,\n    current.parent?.title,\n    current.page.title,\n  ].filter(Boolean) as string[];\n\n  return (\n    <section\n      className={cn(\"@container w-full\", className)}\n      style={{ background: p.bg, color: p.text }}\n    >\n      <div className=\"grid min-h-[640px] grid-cols-[minmax(0,1fr)] grid-rows-[auto_1fr] @[760px]:grid-cols-[264px_minmax(0,1fr)] @[760px]:grid-rows-1\">\n        <aside\n          className=\"border-b @[760px]:border-r @[760px]:border-b-0\"\n          style={{ borderColor: p.border, background: p.panel }}\n        >\n          <button\n            type=\"button\"\n            onClick={() => setMobileOpen((o) => !o)}\n            aria-expanded={mobileOpen}\n            aria-controls={`${uid}-nav`}\n            className={cn(\n              \"flex w-full cursor-pointer items-center justify-between gap-3 border-0 bg-transparent px-4 py-3.5 text-left @[760px]:hidden\",\n              focus,\n            )}\n            style={{ color: p.text, ...ring }}\n          >\n            <span className=\"min-w-0 truncate text-[13.5px]\">\n              <span style={{ color: p.faint }}>Docs / </span>\n              {current.page.title}\n            </span>\n            <motion.svg\n              width=\"14\"\n              height=\"14\"\n              viewBox=\"0 0 24 24\"\n              fill=\"none\"\n              stroke=\"currentColor\"\n              strokeWidth=\"2\"\n              strokeLinecap=\"round\"\n              strokeLinejoin=\"round\"\n              initial={false}\n              animate={{ rotate: mobileOpen ? 180 : 0 }}\n              aria-hidden=\"true\"\n            >\n              <path d=\"m6 9 6 6 6-6\" />\n            </motion.svg>\n          </button>\n          <div\n            id={`${uid}-nav`}\n            className={cn(\n              \"px-3 pb-4 @[760px]:block @[760px]:pt-5 @[760px]:pb-6\",\n              mobileOpen ? \"block\" : \"hidden\",\n            )}\n          >\n            {nav}\n          </div>\n        </aside>\n\n        <main className=\"min-w-0 px-5 py-8 @[640px]:px-10 @[640px]:py-12\">\n          <motion.article\n            key={current.page.id}\n            initial={reduce ? false : { opacity: 0, y: 8 }}\n            animate={{ opacity: 1, y: 0 }}\n            transition={{ duration: 0.22 }}\n            className=\"max-w-2xl\"\n          >\n            <ol\n              className=\"m-0 flex list-none flex-wrap items-center gap-1.5 p-0 text-[12.5px]\"\n              style={{ color: p.faint }}\n              aria-label=\"Breadcrumb\"\n            >\n              {crumbs.map((c, i) => (\n                <li key={c} className=\"flex items-center gap-1.5\">\n                  {i > 0 && <span aria-hidden=\"true\">/</span>}\n                  <span\n                    style={{\n                      color: i === crumbs.length - 1 ? p.muted : undefined,\n                    }}\n                  >\n                    {c}\n                  </span>\n                </li>\n              ))}\n            </ol>\n            <h1 className=\"m-0 mt-3 text-[26px] font-semibold tracking-[-0.015em] @[640px]:text-[32px]\">\n              {current.page.title}\n            </h1>\n            <p\n              className=\"m-0 mt-3 text-[15px] leading-[1.65]\"\n              style={{ color: p.muted }}\n            >\n              {current.page.description}\n            </p>\n            <div className=\"mt-8 flex flex-col gap-2.5\" aria-hidden=\"true\">\n              {[92, 100, 78, 0, 96, 64].map((w, i) =>\n                w ? (\n                  <span\n                    key={i}\n                    className=\"block h-2.5 rounded-full\"\n                    style={{ width: `${w}%`, background: p.pill }}\n                  />\n                ) : (\n                  <span key={i} className=\"block h-3\" />\n                ),\n              )}\n            </div>\n            {current.page.children && (\n              <ul className=\"m-0 mt-8 grid list-none grid-cols-1 gap-2.5 p-0 @[640px]:grid-cols-2\">\n                {current.page.children.map((c) => (\n                  <li key={c.id}>\n                    <button\n                      type=\"button\"\n                      onClick={() => go(c.id)}\n                      className={cn(\n                        \"w-full cursor-pointer rounded-xl border p-4 text-left\",\n                        focus,\n                      )}\n                      style={{\n                        borderColor: p.border,\n                        background: p.card,\n                        color: p.text,\n                        ...ring,\n                      }}\n                    >\n                      <span className=\"block text-[13.5px] font-medium\">\n                        {c.title}\n                      </span>\n                      <span\n                        className=\"mt-1 block text-[12.5px] leading-[1.5]\"\n                        style={{ color: p.muted }}\n                      >\n                        {c.description}\n                      </span>\n                    </button>\n                  </li>\n                ))}\n              </ul>\n            )}\n            <div\n              className=\"mt-10 grid grid-cols-2 gap-3 border-t pt-6\"\n              style={{ borderColor: p.border }}\n            >\n              {[prev, next].map((x, i) =>\n                x ? (\n                  <button\n                    key={x.page.id}\n                    type=\"button\"\n                    onClick={() => go(x.page.id)}\n                    className={cn(\n                      \"min-w-0 cursor-pointer rounded-xl border px-4 py-3\",\n                      i ? \"col-start-2 text-right\" : \"text-left\",\n                      focus,\n                    )}\n                    style={{\n                      borderColor: p.border,\n                      background: \"transparent\",\n                      color: p.text,\n                      ...ring,\n                    }}\n                  >\n                    <span\n                      className=\"block text-[12px]\"\n                      style={{ color: p.faint }}\n                    >\n                      {i ? \"Next →\" : \"← Previous\"}\n                    </span>\n                    <span className=\"mt-0.5 block truncate text-[13.5px] font-medium\">\n                      {x.page.title}\n                    </span>\n                  </button>\n                ) : null,\n              )}\n            </div>\n          </motion.article>\n        </main>\n      </div>\n    </section>\n  );\n}\n\nexport default VerticalNavigation;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}