Header
Top-level site navigation with logo, links, and action buttons.
Default
Brand, navigation links and actions. The navigation takes the rest of the row, so the actions sit at the end.
html
<header class="vt-header">
<a href="#" class="vt-header-brand">
<span class="vt-icon-badge vt-icon-badge-sm vt-icon-badge-square"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-icon-badge-icon" aria-hidden="true">
<path d="M7.84308 3.80211C9.8718 2.6007 10.8862 2 12 2C13.1138 2 14.1282 2.6007 16.1569 3.80211L16.8431 4.20846C18.8718 5.40987 19.8862 6.01057 20.4431 7C21 7.98943 21 9.19084 21 11.5937V12.4063C21 14.8092 21 16.0106 20.4431 17C19.8862 17.9894 18.8718 18.5901 16.8431 19.7915L16.1569 20.1979C14.1282 21.3993 13.1138 22 12 22C10.8862 22 9.8718 21.3993 7.84308 20.1979L7.15692 19.7915C5.1282 18.5901 4.11384 17.9894 3.55692 17C3 16.0106 3 14.8092 3 12.4063V11.5937C3 9.19084 3 7.98943 3.55692 7C4.11384 6.01057 5.1282 5.40987 7.15692 4.20846L7.84308 3.80211Z" stroke="currentColor" stroke-width="1.5"></path>
</svg></span>
Brand
</a>
<nav class="vt-header-nav" aria-label="Main navigation">
<a href="#" class="vt-nav-item vt-active" aria-current="page"><span class="vt-nav-item-label">Home</span></a>
<a href="#" class="vt-nav-item"><span class="vt-nav-item-label">Features</span></a>
<a href="#" class="vt-nav-item"><span class="vt-nav-item-label">Pricing</span></a>
<a href="#" class="vt-nav-item"><span class="vt-nav-item-label">About</span></a>
</nav>
<div class="vt-header-actions">
<a href="#" class="vt-btn vt-btn-ghost"><span>Log in</span></a>
<a href="#" class="vt-btn vt-btn-primary"><span>Sign up</span></a>
</div>
</header>
Centered Navigation
vt-header-centered: logo on the left, navigation in the center, actions on the right.
html
<header class="vt-header vt-header-centered">
<a href="#" class="vt-header-brand">
<span class="vt-icon-badge vt-icon-badge-sm vt-icon-badge-square"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-icon-badge-icon" aria-hidden="true">
<path d="M7.84308 3.80211C9.8718 2.6007 10.8862 2 12 2C13.1138 2 14.1282 2.6007 16.1569 3.80211L16.8431 4.20846C18.8718 5.40987 19.8862 6.01057 20.4431 7C21 7.98943 21 9.19084 21 11.5937V12.4063C21 14.8092 21 16.0106 20.4431 17C19.8862 17.9894 18.8718 18.5901 16.8431 19.7915L16.1569 20.1979C14.1282 21.3993 13.1138 22 12 22C10.8862 22 9.8718 21.3993 7.84308 20.1979L7.15692 19.7915C5.1282 18.5901 4.11384 17.9894 3.55692 17C3 16.0106 3 14.8092 3 12.4063V11.5937C3 9.19084 3 7.98943 3.55692 7C4.11384 6.01057 5.1282 5.40987 7.15692 4.20846L7.84308 3.80211Z" stroke="currentColor" stroke-width="1.5"></path>
</svg></span>
Brand
</a>
<nav class="vt-header-nav" aria-label="Main navigation">
<a href="#" class="vt-nav-item vt-active" aria-current="page"><span class="vt-nav-item-label">Products</span></a>
<a href="#" class="vt-nav-item"><span class="vt-nav-item-label">Pricing</span></a>
<a href="#" class="vt-nav-item"><span class="vt-nav-item-label">Docs</span></a>
<a href="#" class="vt-nav-item"><span class="vt-nav-item-label">Blog</span></a>
</nav>
<div class="vt-header-actions">
<a href="#" class="vt-btn vt-btn-ghost"><span>Log in</span></a>
<a href="#" class="vt-btn vt-btn-primary"><span>Sign up</span></a>
</div>
</header>
With Actions
vt-header-sm, the compact app bar: search, notifications and the account avatar in place of the sign-up buttons.
html
<header class="vt-header vt-header-sm">
<a href="#" class="vt-header-brand">
<span class="vt-icon-badge vt-icon-badge-sm vt-icon-badge-square"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-icon-badge-icon" aria-hidden="true">
<path d="M7.84308 3.80211C9.8718 2.6007 10.8862 2 12 2C13.1138 2 14.1282 2.6007 16.1569 3.80211L16.8431 4.20846C18.8718 5.40987 19.8862 6.01057 20.4431 7C21 7.98943 21 9.19084 21 11.5937V12.4063C21 14.8092 21 16.0106 20.4431 17C19.8862 17.9894 18.8718 18.5901 16.8431 19.7915L16.1569 20.1979C14.1282 21.3993 13.1138 22 12 22C10.8862 22 9.8718 21.3993 7.84308 20.1979L7.15692 19.7915C5.1282 18.5901 4.11384 17.9894 3.55692 17C3 16.0106 3 14.8092 3 12.4063V11.5937C3 9.19084 3 7.98943 3.55692 7C4.11384 6.01057 5.1282 5.40987 7.15692 4.20846L7.84308 3.80211Z" stroke="currentColor" stroke-width="1.5"></path>
</svg></span>
App
</a>
<nav class="vt-header-nav" aria-label="Main navigation">
<a href="#" class="vt-nav-item vt-active" aria-current="page"><span class="vt-nav-item-label">Dashboard</span></a>
<a href="#" class="vt-nav-item"><span class="vt-nav-item-label">Projects</span></a>
<a href="#" class="vt-nav-item"><span class="vt-nav-item-label">Team</span></a>
</nav>
<div class="vt-header-actions">
<div class="vt-header-search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-absolute vt-left-3 vt-top-1/2 vt--translate-y-1/2 vt-w-4 vt-h-4 vt-text-foreground-muted" aria-hidden="true">
<path d="M17 17L21 21" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
<input type="search" placeholder="Search…" aria-label="Search" class="vt-input vt-pl-10">
</div>
<span class="vt-notification-badge">
<button class="vt-btn vt-btn-bordered vt-btn-icon" aria-label="Notifications (new)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M16 18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M4.43654 18H19.5625C20.2903 18 20.6542 18 20.8648 17.8951C21.274 17.6913 21.4929 17.2359 21.3964 16.789C21.3468 16.559 21.1194 16.2749 20.6648 15.7066L20.4951 15.4944C20.0392 14.9246 19.8113 14.6397 19.6184 14.3409C19.0187 13.4119 18.6477 12.354 18.5356 11.254C18.4995 10.9002 18.4995 10.5353 18.4995 9.8056V8.5C18.4995 8.03572 18.4995 7.80358 18.4867 7.60758C18.2898 4.60304 15.8965 2.20977 12.892 2.01285C12.696 2 12.4638 2 11.9995 2C11.5353 2 11.3031 2 11.1071 2.01285C8.10258 2.20977 5.70931 4.60304 5.51239 7.60758C5.49954 7.80358 5.49954 8.03572 5.49954 8.5V9.8056C5.49954 10.5353 5.49954 10.9002 5.46349 11.254C5.35143 12.354 4.98035 13.4119 4.38067 14.3409C4.18779 14.6397 3.95985 14.9246 3.50401 15.4944L3.33427 15.7066C2.87964 16.2749 2.65233 16.559 2.60268 16.789C2.50621 17.2359 2.72509 17.6913 3.13431 17.8951C3.3449 18 3.70878 18 4.43654 18Z" stroke="currentColor" stroke-width="1.5"></path>
</svg></button>
<span class="vt-notification-dot"></span>
</span>
<button type="button" class="vt-avatar vt-avatar-md" aria-label="Account">J</button>
</div>
</header>
Transparent
vt-header-transparent over a brand-colored hero: no surface and no hairline, the brand and links in on-brand, a bordered button for the action.
html
Build faster
Beautiful components for your next project
<div class="vt-bg-brand-fill">
<header class="vt-header vt-header-transparent">
<a href="#" class="vt-header-brand">
<span class="vt-icon-badge vt-icon-badge-sm vt-icon-badge-square"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-icon-badge-icon" aria-hidden="true">
<path d="M7.84308 3.80211C9.8718 2.6007 10.8862 2 12 2C13.1138 2 14.1282 2.6007 16.1569 3.80211L16.8431 4.20846C18.8718 5.40987 19.8862 6.01057 20.4431 7C21 7.98943 21 9.19084 21 11.5937V12.4063C21 14.8092 21 16.0106 20.4431 17C19.8862 17.9894 18.8718 18.5901 16.8431 19.7915L16.1569 20.1979C14.1282 21.3993 13.1138 22 12 22C10.8862 22 9.8718 21.3993 7.84308 20.1979L7.15692 19.7915C5.1282 18.5901 4.11384 17.9894 3.55692 17C3 16.0106 3 14.8092 3 12.4063V11.5937C3 9.19084 3 7.98943 3.55692 7C4.11384 6.01057 5.1282 5.40987 7.15692 4.20846L7.84308 3.80211Z" stroke="currentColor" stroke-width="1.5"></path>
</svg></span>
Brand
</a>
<nav class="vt-header-nav" aria-label="Main navigation">
<a href="#" class="vt-nav-item"><span class="vt-nav-item-label">Features</span></a>
<a href="#" class="vt-nav-item"><span class="vt-nav-item-label">Pricing</span></a>
<a href="#" class="vt-nav-item"><span class="vt-nav-item-label">About</span></a>
</nav>
<div class="vt-header-actions">
<a href="#" class="vt-btn vt-btn-bordered"><span>Get started</span></a>
</div>
</header>
<div class="vt-px-6 vt-pt-8 vt-pb-12 vt-text-center vt-text-generic-white">
<p class="vt-heading-md">Build faster</p>
<p class="vt-body-sm vt-mt-2">Beautiful components for your next project</p>
</div>
</div>
Guidelines
API Reference
| Class | Type | Description |
|---|---|---|
vt-header |
Base | The bar — brand, navigation and actions in a row; 64px tall, 24px side padding, card surface, hairline at the bottom |
vt-header-sm |
Size | Compact app bar, 56px tall |
vt-header-centered |
Layout | Navigation in the center: the brand and the actions share the rest of the row equally |
vt-header-transparent |
Variant | No surface and no hairline, text in on-brand — for a header over a brand-colored hero |
vt-header-brand |
Part | Logo link — a brand-filled vt-icon-badge mark and the name in Heading/SM |
vt-header-nav |
Part | Main navigation — vt-nav-item pills 4px apart, each as wide as its label; takes the rest of the row; hidden below 640px |
vt-nav-item |
Part | Navigation item — the same pill as in the sidebar; vt-active with aria-current="page" marks the current page with the neutral --vt-state-selected wash |
vt-header-actions |
Part | Actions at the end of the row — vt-btn buttons, a search field, a vt-notification-badge, a vt-avatar |
vt-header-search |
Part | 240px wrapper for a vt-input with a leading icon; hidden below 768px |
Accessibility
| Feature | Details |
|---|---|
| Landmark | Use header element — creates banner landmark for screen readers |
| Navigation | Main nav should use nav element with aria-label="Main navigation" |
| Current page | Mark the current item with aria-current="page" and vt-active |
| Icon actions | Icon-only buttons and the avatar need an aria-label ("Notifications (new)", "Account") |
| Skip link | Include a skip-to-content link as the first focusable element |
Built with