Search Plus UI Blocks

Find a block, a category or a site

Docs navbar with version switcher and searchnavbar-docs

Use in Plus UI
npx shadcn@latest add https://blocks.plusui.com/r/navbar-docs.json

Navbar · 10 variants

← → to step through · + on a thumbnail to compare side by side (up to 3)

/preview/navbar-docs
Open ↗

Default content

{
  "brand": "rivetlane",
  "homeHref": "/",
  "version": {
    "label": "Version",
    "current": "v5.2",
    "options": [
      {
        "label": "v5.2",
        "href": "#",
        "badge": "Latest"
      },
      {
        "label": "v5.1",
        "href": "#"
      },
      {
        "label": "v4.9",
        "href": "#",
        "badge": "LTS"
      },
      {
        "label": "v6.0",
        "href": "#",
        "badge": "Beta"
      }
    ]
  },
  "links": [
    {
      "label": "Guides",
      "href": "#"
    },
    {
      "label": "API",
      "href": "#"
    },
    {
      "label": "CLI",
      "href": "#"
    },
    {
      "label": "Examples",
      "href": "#"
    },
    {
      "label": "Changelog",
      "href": "#"
    }
  ],
  "search": {
    "label": "Search the docs",
    "placeholder": "Search docs",
    "shortcut": [
      "⌘",
      "K"
    ],
    "emptyLabel": "No results. Try “preview”, “env” or “rollback”.",
    "groups": [
      {
        "heading": "Guides",
        "items": [
          {
            "label": "Deploy your first repo",
            "href": "#",
            "icon": "rocket",
            "hint": "Quickstart"
          },
          {
            "label": "Preview environments",
            "href": "#",
            "icon": "layers",
            "hint": "Concepts"
          },
          {
            "label": "Roll back a deploy",
            "href": "#",
            "icon": "rollback",
            "hint": "How-to"
          }
        ]
      },
      {
        "heading": "Reference",
        "items": [
          {
            "label": "rivet deploy",
            "href": "#",
            "icon": "terminal",
            "hint": "CLI"
          },
          {
            "label": "POST /v5/deployments",
            "href": "#",
            "icon": "code",
            "hint": "API"
          },
          {
            "label": "Environment variables",
            "href": "#",
            "icon": "key",
            "hint": "Config"
          }
        ]
      }
    ]
  },
  "secondary": [
    {
      "label": "Source on the forge",
      "href": "#",
      "icon": "code"
    },
    {
      "label": "Community forum",
      "href": "#",
      "icon": "message"
    },
    {
      "label": "System status",
      "href": "#",
      "icon": "activity"
    }
  ],
  "actions": [
    {
      "label": "Dashboard",
      "href": "#",
      "variant": "primary"
    }
  ],
  "navLabel": "Docs",
  "menuLabel": "Open menu"
}