Mobile-only fixed disclosure button that toggles the sidebar overlay. Hidden on desktop via CSS.
import MobileSidebarToggle from 'igniteui-astro-components/components/MobileSidebarToggle.astro';| Prop | Type | Default | Description |
|---|---|---|---|
label |
string |
'Components List' |
Visible button text and aria-label suffix. Typically the active section name. |
- Sets
aria-expandedand controls#docs-sidebarviaaria-controls. - The sidebar overlay open/close CSS is driven by a custom element or a script that toggles a class on the
<nav>.
---
import MobileSidebarToggle from 'igniteui-astro-components/components/MobileSidebarToggle.astro';
---
<MobileSidebarToggle label="Components" />Used automatically inside DocsLayout when hasSidebar={true}.