Component

Documentation Navbar

Dark-themed documentation navigation with version selector, search, and developer-focused links. Perfect for SDK and framework docs.

  • Component
  • Tailwind
  • HTML
  • MIT

What it does

Capabilities

  • Version selector dropdown
  • Command palette search hint
  • GitHub link
  • Dark theme optimized for reading
  • Changelog link

Preview

Live component

Interactive preview
Open preview
9:41 100%
devsnips.site/library/tailwind/components/navigation/documentation-navbar/
fluid · no fixed width 100%
No dependencies Production-ready

Install

Add to your project

terminal
npx devsnips add Tailwind/Components/Navigation/documentation-navbar
registry path: Tailwind/Components/Navigation/documentation-navbar

Source

Implementation

code.html
<nav class="bg-[#1e293b] border-b border-slate-700/50">
  <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
    <div class="flex items-center justify-between h-14">
      <!-- Logo & Version -->
      <div class="flex items-center gap-6">
        <a href="#" class="flex items-center gap-2">
          <div class="w-8 h-8 bg-gradient-to-br from-cyan-400 to-blue-500 rounded-lg flex items-center justify-center">
            <svg class="w-5 h-5 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"/>
            </svg>
          </div>
          <span class="text-white font-bold">DevDocs</span>
        </a>
        <div class="hidden md:flex items-center gap-1 pl-6 border-l border-slate-700">
          <span class="text-xs text-slate-400">Version</span>
          <button class="flex items-center gap-1 px-2 py-1 text-sm text-white bg-slate-700/50 rounded hover:bg-slate-700 transition-colors">
            v2.4.0
            <svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
            </svg>
          </button>
        </div>
      </div>

      <!-- Search -->
      <div class="hidden md:flex flex-1 max-w-md mx-8">
        <div class="relative w-full">
          <svg class="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/>
          </svg>
          <input type="text" placeholder="Search docs... (⌘K)" class="w-full pl-10 pr-4 py-1.5 bg-slate-800/50 border border-slate-700 rounded-lg text-sm text-white placeholder-slate-400 focus:outline-none focus:border-cyan-500 focus:bg-slate-800 transition-colors">
        </div>
      </div>

      <!-- Navigation -->
      <div class="hidden lg:flex items-center gap-1">
        <a href="#" class="px-3 py-1.5 text-sm text-slate-300 hover:text-white transition-colors">Guide</a>
        <a href="#" class="px-3 py-1.5 text-sm text-slate-300 hover:text-white transition-colors">API</a>
        <a href="#" class="px-3 py-1.5 text-sm text-slate-300 hover:text-white transition-colors">Examples</a>
        <a href="#" class="px-3 py-1.5 text-sm text-cyan-400 font-medium">Docs</a>
        <a href="#" class="px-3 py-1.5 text-sm text-slate-300 hover:text-white transition-colors">Blog</a>
        <a href="#" class="px-3 py-1.5 text-sm text-slate-300 hover:text-white transition-colors">Showcase</a>
      </div>

      <!-- Actions -->
      <div class="flex items-center gap-3">
        <a href="#" class="hidden md:flex items-center gap-1.5 text-sm text-slate-300 hover:text-white transition-colors">
          <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"/>
          </svg>
          Changelog
        </a>
        <a href="#" class="hidden md:block w-6 h-6 text-slate-400 hover:text-white transition-colors" aria-label="GitHub">
          <svg fill="currentColor" viewBox="0 0 24 24">
            <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/>
          </svg>
        </a>
        <div class="flex items-center gap-2 pl-3 border-l border-slate-700">
          <button class="p-1 text-slate-400 hover:text-white transition-colors" aria-label="Theme">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"/>
            </svg>
          </button>
          <div class="w-7 h-7 bg-gradient-to-br from-cyan-400 to-blue-500 rounded-full flex items-center justify-center">
            <span class="text-white text-xs font-medium">JD</span>
          </div>
        </div>
      </div>

      <!-- Mobile Menu -->
      <button class="lg:hidden p-2 text-slate-400" aria-label="Menu">
        <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"/>
        </svg>
      </button>
    </div>
  </div>
</nav>
78 lines UTF-8 · LF · Spaces: 2
DevSnips AI ready Claude · Cursor · Windsurf

Agent skill & Model Context Protocol

Pass this component straight into your AI workflow. DevSnips exposes each resource as a structured, addressable registry entry, so your agent installs the real files instead of approximating them.

devsnips://components/navigation/documentation-navbar
Prompt instruction
I want to use this DevSnips resource in production:

Page:
https://devsnips.site/library/tailwind/components/navigation/documentation-navbar/

Install: npx devsnips add
Tailwind/Components/Navigation/documentation-navbar

This is the Documentation Navbar — Dark-themed documentation navigation with version selector, search, and developer-focused links. Perfect for SDK and framework docs.

Use this DevSnips resource as the starting point for my project.
Adapt it to my project's stack and conventions, fix any issues,
and make it production-ready while preserving its intended design
and behavior.

Paste into ChatGPT, Claude or your agent — it already carries the page URL and the exact install path.

Resource URI
devsnips://components/navigation/documentation-navbar