/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/src/app/pages/component-viewer/component-viewer.html
27 строк
701 B
Shuaib Hasan Akib
docs: make nav tabs sticky for easier navigation while scrolling (#32011)
09 окт 2025, 00:31
Не верифицирован
09 окт 2025, 00:31
fe67233
Код
Авторство
О чём код?
<div class="docs-component-viewer"> <nav mat-tab-nav-bar mat-stretch-tabs="false" class="docs-component-viewer-tabbed-content docs-sticky-top" aria-label="Documentation Sections" id="component-viewer" focusOnNavigation [tabPanel]="panel" > @for (section of sections; track section) { <a mat-tab-link class="docs-component-viewer-section-tab" [routerLink]="section.toLowerCase()" routerLinkActive #rla="routerLinkActive" [active]="rla.isActive" >{{section}}</a > } </nav> <mat-tab-nav-panel #panel class="docs-component-viewer-content"> <router-outlet /> </mat-tab-nav-panel> </div>