Renders the global navigation bar in the light DOM. Supports IG-family platforms (angular, react, blazor, web-components, slingshot, igniteui).
import GlobalNavBar from 'igniteui-astro-components/components/GlobalNavBar.astro';| Prop | Type | Description |
|---|---|---|
lang |
NavLang |
Required. Locale — 'en' | 'jp' | 'kr'. |
NavLang: 'en' | 'jp' | 'kr'
- Fetches the IG header HTML at build time via
fetchIgNav(lang). - The nav bar is marked
transition:persist="global-nav-bar"so it does not re-render during Astro View Transitions navigation.
---
import GlobalNavBar from 'igniteui-astro-components/components/GlobalNavBar.astro';
---
<GlobalNavBar lang="en" />lang is provided automatically by DocsLayout from the navLang value in the virtual:docs-template/site-meta virtual module, which is set in astro.config.ts:
createDocsSite({
navLang: 'en',
// …
});