-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathmaterial-tabs.html
More file actions
executable file
·1721 lines (1142 loc) · 56 KB
/
material-tabs.html
File metadata and controls
executable file
·1721 lines (1142 loc) · 56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<div class="docs-api">
<h2>
API reference for Angular Material tabs
</h2><div class="docs-api-module">
<p class="docs-api-module-import">
<code>
import {MatTabsModule} from '@angular/material/tabs';
</code>
</p>
<div class="docs-api-module-import-button" data-docs-api-module-import-button="import {MatTabsModule} from '@angular/material/tabs';"></div>
</div>
<h3 id="material-tabs-components" class="docs-header-link docs-api-h3">
<span header-link="components"></span>
Components
</h3>
<h4 id="MatTab" class="docs-header-link docs-api-h4 docs-api-class-name">
<span header-link="MatTab"></span>
<code>MatTab</code>
</h4><p class="docs-api-component-selectors">
<span class="docs-api-class-selector-label">Selector:</span>
<span class="docs-api-class-selector-name">mat-tab</span>
</p><span class="docs-api-class-export-label">Exported as:</span>
<span class="docs-api-class-export-name">matTab</span><h5 class="docs-api-h5 docs-api-method-header">Properties</h5>
<div class="docs-api-properties-card">
<table class="docs-api-properties-table">
<tr class="docs-api-properties-header-row">
<th class="docs-api-properties-th">Name</th>
<th class="docs-api-properties-th">Description</th>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">'aria-label'</span>)
</div><p class="docs-api-property-name">
<code>ariaLabel: <code class="docs-api-property-type">string</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Aria label for the tab.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">'aria-labelledby'</span>)
</div><p class="docs-api-property-name">
<code>ariaLabelledby: <code class="docs-api-property-type">string</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Reference to the element that the tab is labelled by.
Will be cleared if <code>aria-label</code> is set at the same time.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">
@Input()</div><p class="docs-api-property-name">
<code>bodyClass: <code class="docs-api-property-type">string | string[]</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Classes to be passed to the tab mat-tab-body container.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ transform: booleanAttribute }</span>)
</div><p class="docs-api-property-name">
<code>disabled: <code class="docs-api-property-type">boolean</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>whether the tab is disabled.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">
@Input()</div><p class="docs-api-property-name">
<code>id: <code class="docs-api-property-type">string | null</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Custom ID for the tab, overriding the auto-generated one by Material.
Note that when using this input, it's your responsibility to ensure that the ID is unique.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">
@Input()</div><p class="docs-api-property-name">
<code>labelClass: <code class="docs-api-property-type">string | string[]</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Classes to be passed to the tab label inside the mat-tab-header container.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">'label'</span>)
</div><p class="docs-api-property-name">
<code>textLabel: <code class="docs-api-property-type">string</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Plain text label for the tab, used when there is no template label.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>isActive: <code class="docs-api-property-type">false</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Whether the tab is currently active.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>origin: <code class="docs-api-property-type">number | null</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>The initial relatively index origin of the tab if it was created and selected after there
was already a selected tab. Provides context of what position the tab should originate from.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>position: <code class="docs-api-property-type">number | null</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>The relatively indexed position where 0 represents the center, negative is left, and positive
represents the right.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>templateLabel: <code class="docs-api-property-type">MatTabLabel</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Content for the tab label given by <code><ng-template mat-tab-label></code>.</p>
</td>
</tr>
</table>
</div>
<h4 id="MatTabGroup" class="docs-header-link docs-api-h4 docs-api-class-name">
<span header-link="MatTabGroup"></span>
<code>MatTabGroup</code>
</h4><p class="docs-api-class-description"><p>Material design tab-group component. Supports basic tab pairs (label + content) and includes
animated ink-bar, keyboard navigation, and screen reader.
See: <a href="https://material.io/design/components/tabs.html">https://material.io/design/components/tabs.html</a></p>
</p><p class="docs-api-component-selectors">
<span class="docs-api-class-selector-label">Selector:</span>
<span class="docs-api-class-selector-name">mat-tab-group</span>
</p><span class="docs-api-class-export-label">Exported as:</span>
<span class="docs-api-class-export-name">matTabGroup</span><h5 class="docs-api-h5 docs-api-method-header">Properties</h5>
<div class="docs-api-properties-card">
<table class="docs-api-properties-table">
<tr class="docs-api-properties-header-row">
<th class="docs-api-properties-th">Name</th>
<th class="docs-api-properties-th">Description</th>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ alias: 'mat-align-tabs' }</span>)
</div><p class="docs-api-property-name">
<code>alignTabs: <code class="docs-api-property-type">string | null</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Alignment for tabs label.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">
@Input()</div><p class="docs-api-property-name">
<code>animationDuration: <code class="docs-api-property-type">MatTabGroupAnimationDuration</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Duration for the tab animation. Will be normalized to milliseconds if no units are set.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">'aria-label'</span>)
</div><p class="docs-api-property-name">
<code>ariaLabel: <code class="docs-api-property-type">string</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Aria label of the inner <code>tablist</code> of the group.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">'aria-labelledby'</span>)
</div><p class="docs-api-property-name">
<code>ariaLabelledby: <code class="docs-api-property-type">string</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Sets the <code>aria-labelledby</code> of the inner <code>tablist</code> of the group.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">
@Input()</div><p class="docs-api-property-name">
<code>color: <code class="docs-api-property-type">ThemePalette</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Theme color of the tab group. This API is supported in M2 themes only, it
has no effect in M3 themes. For color customization in M3, see <a href="https://material.angular.dev/components/tabs/styling">https://material.angular.dev/components/tabs/styling</a>.</p>
<p>For information on applying color variants in M3, see
<a href="https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants">https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants</a></p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ transform: numberAttribute }</span>)
</div><p class="docs-api-property-name">
<code>contentTabIndex: <code class="docs-api-property-type">number | null</code></code>
</p>
</td>
<td class="docs-api-property-description"><p><code>tabindex</code> to be set on the inner element that wraps the tab content. Can be used for improved
accessibility when the tab does not have focusable elements or if it has scrollable content.
The <code>tabindex</code> will be removed automatically for inactive tabs.
Read more at <a href="https://www.w3.org/TR/wai-aria-practices/examples/tabs/tabs-2/tabs.html">https://www.w3.org/TR/wai-aria-practices/examples/tabs/tabs-2/tabs.html</a></p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ transform: booleanAttribute }</span>)
</div><p class="docs-api-property-name">
<code>disablePagination: <code class="docs-api-property-type">boolean</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Whether pagination should be disabled. This can be used to avoid unnecessary
layout recalculations if it's known that pagination won't be required.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ transform: booleanAttribute }</span>)
</div><p class="docs-api-property-name">
<code>disableRipple: <code class="docs-api-property-type">boolean</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Whether ripples in the tab group are disabled.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ transform: booleanAttribute }</span>)
</div><p class="docs-api-property-name">
<code>dynamicHeight: <code class="docs-api-property-type">boolean</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Whether the tab group should grow to the size of the active tab.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ transform: booleanAttribute }</span>)
</div><p class="docs-api-property-name">
<code>fitInkBarToContent: <code class="docs-api-property-type">boolean</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Whether the ink bar should fit its width to the size of the tab label content.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">
@Input()</div><p class="docs-api-property-name">
<code>headerPosition: <code class="docs-api-property-type">MatTabHeaderPosition</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Position of the tab header.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ transform: booleanAttribute }</span>)
</div><p class="docs-api-property-name">
<code>preserveContent: <code class="docs-api-property-type">boolean</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>By default tabs remove their content from the DOM while it's off-screen.
Setting this to <code>true</code> will keep it in the DOM which will prevent elements
like iframes and videos from reloading next time it comes back into the view.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ transform: numberAttribute }</span>)
</div><p class="docs-api-property-name">
<code>selectedIndex: <code class="docs-api-property-type">number | null</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>The index of the active tab.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ alias: 'mat-stretch-tabs', transform: booleanAttribute }</span>)
</div><p class="docs-api-property-name">
<code>stretchTabs: <code class="docs-api-property-type">boolean</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Whether tabs should be stretched to fill the header.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-output-marker">
@Output()</div><p class="docs-api-property-name">
<code>animationDone: <code class="docs-api-property-type">EventEmitter<void></code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Event emitted when the body animation has completed</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-output-marker">
@Output()</div><p class="docs-api-property-name">
<code>focusChange: <code class="docs-api-property-type">EventEmitter<MatTabChangeEvent></code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Event emitted when focus has changed within a tab group.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-output-marker">
@Output()</div><p class="docs-api-property-name">
<code>selectedIndexChange: <code class="docs-api-property-type">EventEmitter<number></code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Output to enable support for two-way binding on <code>[(selectedIndex)]</code></p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-output-marker">
@Output()</div><p class="docs-api-property-name">
<code>selectedTabChange: <code class="docs-api-property-type">EventEmitter<MatTabChangeEvent></code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Event emitted when the tab selection has changed.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">
@Input()</div><div class="docs-api-deprecated-marker" deprecated-message="The background color should be customized through Sass theming APIs. Will be removed in v20.0.0 Remove this input or later."
>
Deprecated
</div><p class="docs-api-property-name">
<code>backgroundColor: <code class="docs-api-property-type">ThemePalette</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Theme color of the background of the tab group. This API is supported in M2 themes only, it
has no effect in M3 themes. For color customization in M3, see <a href="https://material.angular.dev/components/tabs/styling">https://material.angular.dev/components/tabs/styling</a>.</p>
<p>For information on applying color variants in M3, see
<a href="https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants">https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants</a></p>
</td>
</tr>
</table>
</div>
<h5 class="docs-api-h5 docs-api-method-header">Methods</h5>
<div class="docs-api-method-card">
<table class="docs-api-method-table">
<thead>
<tr class="docs-api-method-name-row">
<th colspan="2" class="docs-api-method-name-cell">focusTab
(<span class="docs-api-method-parameter-name">index:
</span>
<code class="docs-api-method-parameter-type">number</code>): <code class="docs-api-method-returns-type"></code>
</th>
</tr>
</thead><tr class="docs-api-method-description-row">
<td colspan="2" class="docs-api-method-description-cell">
<p>Sets focus to a particular tab.</p>
</td>
</tr><thead>
<tr class="docs-api-method-parameters-header-row">
<th colspan="2" class="docs-api-method-parameters-header-cell">Parameters</th>
</tr>
</thead>
<tr class="docs-api-method-parameter-row">
<td class="docs-api-method-parameter-cell">
<p class="docs-api-method-parameter-name">
index</p>
<code class="docs-api-method-parameter-type">number</code>
</td>
<td class="docs-api-method-parameter-description-cell">
<p class="docs-api-method-parameter-description">
<p>Index of the tab to be focused.</p>
</p>
</td>
</tr>
</table>
</div>
<div class="docs-api-method-card">
<table class="docs-api-method-table">
<thead>
<tr class="docs-api-method-name-row">
<th colspan="2" class="docs-api-method-name-cell">realignInkBar
(): <code class="docs-api-method-returns-type"></code>
</th>
</tr>
</thead><tr class="docs-api-method-description-row">
<td colspan="2" class="docs-api-method-description-cell">
<p>Re-aligns the ink bar to the selected tab element.</p>
</td>
</tr></table>
</div>
<div class="docs-api-method-card">
<table class="docs-api-method-table">
<thead>
<tr class="docs-api-method-name-row">
<th colspan="2" class="docs-api-method-name-cell">updatePagination
(): <code class="docs-api-method-returns-type"></code>
</th>
</tr>
</thead><tr class="docs-api-method-description-row">
<td colspan="2" class="docs-api-method-description-cell">
<p>Recalculates the tab group's pagination dimensions.</p>
<p>WARNING: Calling this method can be very costly in terms of performance. It should be called
as infrequently as possible from outside of the Tabs component as it causes a reflow of the
page.</p>
</td>
</tr></table>
</div>
<h4 id="MatTabNav" class="docs-header-link docs-api-h4 docs-api-class-name">
<span header-link="MatTabNav"></span>
<code>MatTabNav</code>
</h4><p class="docs-api-class-description"><p>Navigation component matching the styles of the tab group header.
Provides anchored navigation with animated ink bar.</p>
</p><p class="docs-api-component-selectors">
<span class="docs-api-class-selector-label">Selector:</span>
<span class="docs-api-class-selector-name">[mat-tab-nav-bar]</span>
</p><span class="docs-api-class-export-label">Exported as:</span>
<span class="docs-api-class-export-name">matTabNavBar, matTabNav</span><h5 class="docs-api-h5 docs-api-method-header">Properties</h5>
<div class="docs-api-properties-card">
<table class="docs-api-properties-table">
<tr class="docs-api-properties-header-row">
<th class="docs-api-properties-th">Name</th>
<th class="docs-api-properties-th">Description</th>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">
@Input()</div><p class="docs-api-property-name">
<code>animationDuration: <code class="docs-api-property-type">string</code></code>
</p>
</td>
<td class="docs-api-property-description"></td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">
@Input()</div><p class="docs-api-property-name">
<code>backgroundColor: <code class="docs-api-property-type">ThemePalette</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Theme color of the background of the tab nav. This API is supported in M2 themes only, it
has no effect in M3 themes. For color customization in M3, see <a href="https://material.angular.dev/components/tabs/styling">https://material.angular.dev/components/tabs/styling</a>.</p>
<p>For information on applying color variants in M3, see
<a href="https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants">https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants</a></p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">
@Input()</div><p class="docs-api-property-name">
<code>color: <code class="docs-api-property-type">ThemePalette</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Theme color of the nav bar. This API is supported in M2 themes only, it has
no effect in M3 themes. For color customization in M3, see <a href="https://material.angular.dev/components/tabs/styling">https://material.angular.dev/components/tabs/styling</a>.</p>
<p>For information on applying color variants in M3, see
<a href="https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants">https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants</a></p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ transform: booleanAttribute }</span>)
</div><p class="docs-api-property-name">
<code>disablePagination: <code class="docs-api-property-type">boolean</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Whether pagination should be disabled. This can be used to avoid unnecessary
layout recalculations if it's known that pagination won't be required.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ transform: booleanAttribute }</span>)
</div><p class="docs-api-property-name">
<code>disableRipple: <code class="docs-api-property-type">boolean</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Whether the ripple effect is disabled or not.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ transform: booleanAttribute }</span>)
</div><p class="docs-api-property-name">
<code>fitInkBarToContent: <code class="docs-api-property-type">boolean</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Whether the ink bar should fit its width to the size of the tab label content.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ transform: numberAttribute }</span>)
</div><p class="docs-api-property-name">
<code>selectedIndex: <code class="docs-api-property-type">number</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>The index of the active tab.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ alias: 'mat-stretch-tabs', transform: booleanAttribute }</span>)
</div><p class="docs-api-property-name">
<code>stretchTabs: <code class="docs-api-property-type">boolean</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Whether tabs should be stretched to fill the header.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">
@Input()</div><p class="docs-api-property-name">
<code>tabPanel: <code class="docs-api-property-type">MatTabNavPanel</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Associated tab panel controlled by the nav bar. If not provided, then the nav bar
follows the ARIA link / navigation landmark pattern. If provided, it follows the
ARIA tabs design pattern.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-output-marker">
@Output()</div><p class="docs-api-property-name">
<code>indexFocused: <code class="docs-api-property-type">EventEmitter<number></code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Event emitted when a label is focused.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-output-marker">
@Output()</div><p class="docs-api-property-name">
<code>selectFocusedIndex: <code class="docs-api-property-type">EventEmitter<number></code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Event emitted when the option is selected.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>focusIndex: <code class="docs-api-property-type">number</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Tracks which element has focus; used for keyboard navigation</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
<code>scrollDistance: <code class="docs-api-property-type">number</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Sets the distance in pixels that the tab header should be transformed in the X-axis.</p>
</td>
</tr>
</table>
</div>
<h5 class="docs-api-h5 docs-api-method-header">Methods</h5>
<div class="docs-api-method-card">
<table class="docs-api-method-table">
<thead>
<tr class="docs-api-method-name-row">
<th colspan="2" class="docs-api-method-name-cell">updateActiveLink
(): <code class="docs-api-method-returns-type"></code>
</th>
</tr>
</thead><tr class="docs-api-method-description-row">
<td colspan="2" class="docs-api-method-description-cell">
<p>Notifies the component that the active link has been changed.</p>
</td>
</tr></table>
</div>
<div class="docs-api-method-card">
<table class="docs-api-method-table">
<thead>
<tr class="docs-api-method-name-row">
<th colspan="2" class="docs-api-method-name-cell">updatePagination
(): <code class="docs-api-method-returns-type"></code>
</th>
</tr>
</thead><tr class="docs-api-method-description-row">
<td colspan="2" class="docs-api-method-description-cell">
<p>Updates the view whether pagination should be enabled or not.</p>
<p>WARNING: Calling this method can be very costly in terms of performance. It should be called
as infrequently as possible from outside of the Tabs component as it causes a reflow of the
page.</p>
</td>
</tr></table>
</div>
<h4 id="MatTabNavPanel" class="docs-header-link docs-api-h4 docs-api-class-name">
<span header-link="MatTabNavPanel"></span>
<code>MatTabNavPanel</code>
</h4><p class="docs-api-class-description"><p>Tab panel component associated with MatTabNav.</p>
</p><p class="docs-api-component-selectors">
<span class="docs-api-class-selector-label">Selector:</span>
<span class="docs-api-class-selector-name">mat-tab-nav-panel</span>
</p><span class="docs-api-class-export-label">Exported as:</span>
<span class="docs-api-class-export-name">matTabNavPanel</span><h5 class="docs-api-h5 docs-api-method-header">Properties</h5>
<div class="docs-api-properties-card">
<table class="docs-api-properties-table">
<tr class="docs-api-properties-header-row">
<th class="docs-api-properties-th">Name</th>
<th class="docs-api-properties-th">Description</th>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">
@Input()</div><p class="docs-api-property-name">
<code>id: <code class="docs-api-property-type">string</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Unique id for the tab panel.</p>
</td>
</tr>
</table>
</div>
<h4 id="MatTabLink" class="docs-header-link docs-api-h4 docs-api-class-name">
<span header-link="MatTabLink"></span>
<code>MatTabLink</code>
</h4><p class="docs-api-class-description"><p>Link inside a <code>mat-tab-nav-bar</code>.</p>
</p><p class="docs-api-component-selectors">
<span class="docs-api-class-selector-label">Selector:</span>
<span class="docs-api-class-selector-name">[mat-tab-link]</span>
<span class="docs-api-class-selector-name">[matTabLink]</span>
</p><span class="docs-api-class-export-label">Exported as:</span>
<span class="docs-api-class-export-name">matTabLink</span><h5 class="docs-api-h5 docs-api-method-header">Properties</h5>
<div class="docs-api-properties-card">
<table class="docs-api-properties-table">
<tr class="docs-api-properties-header-row">
<th class="docs-api-properties-th">Name</th>
<th class="docs-api-properties-th">Description</th>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ transform: booleanAttribute }</span>)
</div><p class="docs-api-property-name">
<code>active: <code class="docs-api-property-type">boolean</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Whether the link is active.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ transform: booleanAttribute }</span>)
</div><p class="docs-api-property-name">
<code>disableRipple: <code class="docs-api-property-type">boolean</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Whether ripples are disabled on the tab link.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ transform: booleanAttribute }</span>)
</div><p class="docs-api-property-name">
<code>disabled: <code class="docs-api-property-type">boolean</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Whether the tab link is disabled.</p>
</td>
</tr>
<tr class="docs-api-properties-row">
<td class="docs-api-properties-name-cell"><div class="docs-api-input-marker">@Input(<span class="docs-api-input-alias">{ transform: booleanAttribute }</span>)
</div><p class="docs-api-property-name">
<code>fitInkBarToContent: <code class="docs-api-property-type">boolean</code></code>
</p>
</td>
<td class="docs-api-property-description"><p>Whether the ink bar should fit to the entire tab or just its content.</p>
</td>
</tr>