nav
Text links in the header, in order. On narrow screens they move to the menu.
| Type | Default | Notes |
|---|---|---|
{ label: string; href: string }[] |
[] |
Site option, JAAB reads it too |
Use cases
Links to the rest of a product
nav: [
{ label: 'API', href: 'https://api.example.dev' },
{ label: 'Changelog', href: '/changelog/' },
],
A link to another site opens in a new tab. A path gets Astro’s
base.
Docs and a blog
Beside JAAB, the same links lead from one to the other:
nav: [
{ label: 'Docs', href: '/' },
{ label: 'Blog', href: '/blog/' },
],
Limits
href is a path or an http(s), mailto or tel URL.