The marketing site header: a logo/brand mark, a center nav slot, an end slot (usually
login/signup), a dark mode toggle, and a built-in mobile hamburger menu. Place it as the first
thing on the page, before <Base>.
product"blogs"). Derives the default logo and fetches the cloud
updates banner on hyvor.com.instance"https://hyvor.com"name"HYVOR"subNamelogoproduct-derived default.darkToggletruemaxfalsemenuLabel"Menu"aria-label for the mobile hamburger menu button. Translate this when localizing the
page.logoAltText"Logo"name/subName are product-defined and stay as-is.centerHeaderNavLink.endnotification--header-height CSS variable.On mobile and tablets (<=992px), content in both center and end slots will be hidden, and a hamburger menu will be shown instead. The hamburger
menu opens a dropdown with the content of both slots (with a divider between them), and its icon switches
from a hamburger to a close (X) icon while open. Clicking any link inside the menu closes it automatically.
The hamburger panel itself caps its height to the viewport and scrolls internally, so a long menu stays fully reachable on short screens.
The header also gains a bottom border once the page is scrolled, so it stays visually separated from the content beneath it.
HeaderNavLink is a pill-shaped nav link meant to be used inside the center slot (and inside submenus placed there). It renders an <a> when given an href, or a <span> otherwise.
hrefspan.activefalsemenufalsedescription is given.startdescription is given.childrenenddescription is given.description<script>
import Header from "@hyvor/design/marketing/Header.svelte";
import { HeaderNavLink } from "@hyvor/design/marketing";
import { Button } from "@hyvor/design/components";
import logo from '../img/logo.svg';
</script>
<Header
logo={logo}
subName="Talk"
>
{#snippet center()}
<HeaderNavLink href="/docs" active={page.url.pathname.startsWith('/docs')}>
Docs
</HeaderNavLink>
<HeaderNavLink href="/pricing" active={page.url.pathname === '/pricing'}>
Pricing
</HeaderNavLink>
{/snippet}
{#snippet end()}
<div>
<Button as="a" href="/login" color="invisible">
Login
</Button>
<Button as="a" href="/signup">
Signup
</Button>
</div>
{/snippet}
</Header>