Secondary fixed header bar rendered below the GlobalNavBar. Contains the Pagefind search button and platform product-switch links.
Note: The breadcrumb trail was extracted into the standalone
DocsBreadcrumbcomponent and is now rendered inside the main content frame, above the page body — not in this bar.
import DocsSubHeader from 'igniteui-astro-components/components/DocsSubHeader.astro';| Prop | Type | Default | Description |
|---|---|---|---|
productLinks |
{ label: string; href: string; platform?: string }[] |
virtual module | Override the cross-product navigation links. |
sidebarItems |
SidebarEntry[] |
virtual module | Override the sidebar tree used for breadcrumb generation. |
packages |
string[] |
— | Package names for the package selector dropdown. Hidden when omitted. |
selectedPackage |
string |
— | Currently selected package (must match one of packages). |
packageLabel |
string |
'Package' |
Label rendered before the package selector. |
versions |
string[] |
— | Version labels for the version selector dropdown. Hidden when omitted. |
selectedVersion |
string |
— | Currently selected version (must match one of versions). |
versionLabel |
string |
'Version' |
Label rendered before the version selector. |
showThemeToggle |
boolean |
false |
Show a light/dark theme toggle button. |
themeStorageKey |
string |
'docs-theme' |
localStorage key for persisting the theme preference. |
| Slot | Default | Description |
|---|---|---|
search |
<Search /> |
Override the search widget rendered in the subheader. |
- Product links from the virtual module are shown; the currently active platform link is hidden.
- The search button opens the Pagefind dialog (see
Searchcomponent). - CSS custom properties used for positioning:
--docs-global-nav-height(default4.7rem) — height of theGlobalNavBarabove--docs-subheader-height(default2.5rem) — height of this bar
---
import DocsSubHeader from 'igniteui-astro-components/components/DocsSubHeader.astro';
const productLinks = [
{ label: 'Angular', href: '/angular/', platform: 'angular' },
{ label: 'React', href: '/react/', platform: 'react' },
{ label: 'Web Components', href: '/web-components/', platform: 'web-components' },
];
---
<DocsSubHeader productLinks={productLinks} />This component is used automatically inside DocsLayout — you only need to
mount it directly when building a custom page shell.
---
import DocsSubHeader from 'igniteui-astro-components/components/DocsSubHeader.astro';
import SearchAdvanced from 'igniteui-astro-components/components/SearchAdvanced.astro';
---
<DocsSubHeader
siteTitle="Ignite UI for Angular"
packages={['igniteui-angular', 'igniteui-charts']}
selectedPackage="igniteui-angular"
packageLabel="Package"
versions={['19.1 (latest)', '18.2', '18.1']}
selectedVersion="19.1 (latest)"
versionLabel="Version"
showThemeToggle
themeStorageKey="api-docs-theme"
productLinks={[]}
>
<SearchAdvanced slot="search" showScope tabs={[]} />
</DocsSubHeader>The #package-select and #version-select elements emit native change
events — attach your own navigation logic via document.getElementById.