DocsHeader
The top of a docs site: the brand, search, the main links, the language, the product switcher, night or paper, and one call to action.
import DocsHeader from '@sypnia/ui/astro/DocsHeader.astro'
On this page
Every part
On phones only the menu, the brand, search and the language stay; the rest moves into the drawer.
Code
---
import DocsHeader from '@sypnia/ui/astro/DocsHeader.astro';
---
<div class="sy-docs" style="min-height:0">
<DocsHeader product="Docs" section="Data" links={[{ label: 'Guides', href: '#' }, { label: 'API', href: '#', current: true }]}
languages={[{ code: 'en', label: 'English', href: '#' }, { code: 'es', label: 'Español', href: '#' }]}
products={[{ label: 'Data', note: 'Tables and API', href: '#', current: true }, { label: 'Telemetry', note: 'Errors and performance', href: '#' }]}
cta={{ label: 'Open the console', href: '#' }} />
</div> When to use it
Use it when
- Inside DocsShell (it places it for you), or on a docs page of your own.
Do not use it when
- A product's console: its header is the AppShell top bar.
For everyone
- Search opens with Ctrl K, ⌘ K or «/», and the button says so.
- Icon buttons (menu, fold, products, surface) all have names.
- The language link is marked with its language, so screen readers read it right.