@fairylights-studio/ngx-m3-navigation-suite
v0.5.0
Published
Material 3 navigation suite scaffold with responsive breakpoint switching for Angular Material
Downloads
79
Maintainers
Readme
Navigation Suite
Responsive navigation suite scaffold with automatic breakpoint switching between navigation-bar and navigation-rail for Angular Material.
This is a third-party implementation by FairyLights Studio, not an official Angular / Google component.
Visibility state
MatNavigationSuiteScaffoldState controls navigation visibility:
scaffoldState = new MatNavigationSuiteScaffoldState('visible');
await scaffoldState.hide();
await scaffoldState.show();
await scaffoldState.toggle();
await scaffoldState.snapTo('hidden');The state exposes currentValue, targetValue, and isAnimating signals. The Promise returned by show(), hide(), toggle(), and snapTo() resolves when the scaffold reaches the settled state. In bar layouts, matNavigationSuitePrimaryAction remains visible when the navigation bar hides; in rail layouts, it remains part of the rail header and hides with the rail. Rail hide/show mirrors Angular Material sidenav: the rail surface keeps its own width and slides with translate3d(), while the content area expands or reserves space separately.
