diff --git a/src/material/tabs/tab-group.html b/src/material/tabs/tab-group.html index 5a655f98e752..304587d2c328 100644 --- a/src/material/tabs/tab-group.html +++ b/src/material/tabs/tab-group.html @@ -51,6 +51,16 @@ } + +@if (_isServer) { + +} +
('MAT_TAB_GROUP'); exportAs: 'matTab', providers: [{provide: MAT_TAB, useExisting: MatTab}], standalone: true, + host: { + // This element will be rendered on the server in order to support hydration. + // Hide it so it doesn't cause a layout shift when it's removed on the client. + 'hidden': '', + }, }) export class MatTab implements OnInit, OnChanges, OnDestroy { /** whether the tab is disabled. */ diff --git a/src/universal-app/kitchen-sink/kitchen-sink.html b/src/universal-app/kitchen-sink/kitchen-sink.html index 784ea998431d..f0d07b9d8072 100644 --- a/src/universal-app/kitchen-sink/kitchen-sink.html +++ b/src/universal-app/kitchen-sink/kitchen-sink.html @@ -307,13 +307,37 @@

Tabs

--> - The overview +

The overview

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque assumenda doloribus, + rerum temporibus fugit aliquid adipisci aliquam eaque sint voluptas dolore cumque voluptatibus + quam quod. Quasi adipisci officia similique in?

+

Deleniti neque placeat magnam, voluptatibus eligendi illo consectetur dolore minima dolorem + nemo suscipit dolorum accusantium? Numquam officia culpa itaque qui repudiandae nulla, + laboriosam nihil molestiae ad aut perferendis alias amet.

+

Officia esse temporibus consequatur ipsa! Veritatis alias facere amet reiciendis sint + impedit atque iste doloremque dolor? Ullam, aspernatur? Alias, fuga! At dolorum odio + molestiae laudantium nihil alias inventore veritatis voluptatum.

+
- - API docs - - The API docs + API docs +

The API docs

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum facere quasi natus rerum + quae, nisi, quis, voluptate assumenda necessitatibus labore illo. Illum ipsum consequatur, + excepturi aspernatur odio veritatis sint perferendis!

+

Dicta ex laborum repudiandae nesciunt. Ea asperiores quo totam velit! Aliquid cum laudantium + officiis molestias, excepturi odio, autem magni dignissimos perspiciatis, amet qui! Dolorem + molestiae similique necessitatibus cupiditate ipsa aspernatur?

+ +
+ + + Examples +

The examples

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi animi saepe, optio sequi + accusantium, eos perspiciatis reprehenderit, nobis exercitationem sunt ducimus molestiae + laborum inventore itaque incidunt. Neque dolorum adipisci quidem.

+
diff --git a/tools/public_api_guard/material/tabs.md b/tools/public_api_guard/material/tabs.md index 58c0cc9c58bb..11fa027ac4e2 100644 --- a/tools/public_api_guard/material/tabs.md +++ b/tools/public_api_guard/material/tabs.md @@ -281,6 +281,7 @@ export class MatTabGroup implements AfterContentInit, AfterContentChecked, OnDes _getTabLabelId(i: number): string; _handleClick(tab: MatTab, tabHeader: MatTabGroupBaseHeader, index: number): void; headerPosition: MatTabHeaderPosition; + protected _isServer: boolean; // (undocumented) static ngAcceptInputType_contentTabIndex: unknown; // (undocumented) @@ -319,7 +320,7 @@ export class MatTabGroup implements AfterContentInit, AfterContentChecked, OnDes _tabs: QueryList; updatePagination(): void; // (undocumented) - static ɵcmp: i0.ɵɵComponentDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; // (undocumented) static ɵfac: i0.ɵɵFactoryDeclaration; }