Simple Navbar
A logo, an inline link row and a CTA, collapsing to a hamburger menu below the md breakpoint.
6 फ्रेमवर्कमध्यम
A ghost sign-in link, a divider and a filled sign-up button - the two-tier auth cluster.
<!--
A split action cluster on the right: a ghost "Sign in" text link, a divider,
then a filled "Sign up" button - the two-tier auth pattern. Both actions plus
the links fold into the hamburger panel below md, so the phone layout keeps
the same hierarchy: links, then sign in, then the primary button.
-->
<header class="border-b border-gray-200 bg-white dark:border-gray-800 dark:bg-gray-900">
<nav class="mx-auto flex h-14 max-w-6xl items-center gap-4 px-4" aria-label="Main">
<a href="/" class="font-bold text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600 dark:text-gray-50 dark:focus-visible:ring-blue-400">Adysre</a>
<ul class="mr-auto hidden items-center gap-1 md:flex">
<li><a href="/product" class="rounded-md px-3 py-1.5 text-sm font-medium text-gray-700 hover:bg-gray-100 hover:text-gray-900 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-gray-50">Product</a></li>
<li><a href="/pricing" class="rounded-md px-3 py-1.5 text-sm font-medium text-gray-700 hover:bg-gray-100 hover:text-gray-900 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-gray-50">Pricing</a></li>
<li><a href="/docs" class="rounded-md px-3 py-1.5 text-sm font-medium text-gray-700 hover:bg-gray-100 hover:text-gray-900 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-gray-50">Docs</a></li>
</ul>
<div class="hidden items-center gap-3 md:flex">
<a href="/login" class="text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-300 dark:hover:text-gray-50">Sign in</a>
<span class="h-5 w-px bg-gray-200 dark:bg-gray-700" aria-hidden="true"></span>
<a href="/signup" class="rounded-lg bg-blue-600 px-3.5 py-1.5 text-sm font-semibold text-white hover:bg-blue-700">Sign up</a>
</div>
<button
type="button"
aria-expanded="false"
aria-controls="nav-split-menu"
aria-label="Open main menu"
class="ml-auto inline-flex h-9 w-9 items-center justify-center rounded-md text-gray-700 hover:bg-gray-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600 md:hidden dark:text-gray-300 dark:hover:bg-gray-800 dark:focus-visible:ring-blue-400"
>
<svg class="h-5 w-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true" focusable="false"><path d="M4 6h16M4 12h16M4 18h16" /></svg>
</button>
</nav>
<div id="nav-split-menu" hidden class="border-t border-gray-200 px-4 pb-4 pt-2 md:hidden dark:border-gray-800">
<ul class="flex flex-col gap-1">
<li><a href="/product" class="block rounded-md px-3 py-2 text-sm font-medium text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800">Product</a></li>
<li><a href="/pricing" class="block rounded-md px-3 py-2 text-sm font-medium text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800">Pricing</a></li>
<li><a href="/docs" class="block rounded-md px-3 py-2 text-sm font-medium text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800">Docs</a></li>
</ul>
<div class="mt-2 flex flex-col gap-2 border-t border-gray-200 pt-3 dark:border-gray-800">
<a href="/login" class="rounded-lg border border-gray-300 px-3 py-2 text-center text-sm font-semibold text-gray-900 hover:bg-gray-100 dark:border-gray-700 dark:text-gray-50 dark:hover:bg-gray-800">Sign in</a>
<a href="/signup" class="rounded-lg bg-blue-600 px-3 py-2 text-center text-sm font-semibold text-white hover:bg-blue-700">Sign up</a>
</div>
</div>
</header>| Prop | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
signInLabel | string | 'Sign in' | Sign in label |
signUpLabel | string | 'Sign up' | Sign up label |
className | string | - | रूट एलिमेंट पर मर्ज होने वाली अतिरिक्त क्लासेज़। |
The right side is the two-tier auth pattern: a ghost `Sign in` text link, a hairline divider, then a filled `Sign up` button, so the primary action reads as primary. Below `md` both actions plus the links fold into the hamburger panel in the same order - links, sign in, sign up - so the hierarchy survives the collapse. Rename via `signInLabel` and `signUpLabel`.