@engie-group/fluid-design-system-angular
Version:
Fluid Design System Angular
25 lines (24 loc) • 745 B
HTML
<button class="nj-tab__item" [ngClass]="{'nj-tab__item--active': isActive}"
role="tab"
[]="isActive"
[]="ariaControls"
[]="isActive ? 0 : -1"
[]="isDisabled"
(click)="tabSelect?.emit()"
(keydown)="tabMove?.emit($event)"
>
<ng-content></ng-content>
<nj-badge
*ngIf="badgeOptions"
size="md"
[]="badgeOptions.variant"
[]="badgeOptions.emphasis"
[]="badgeOptions.value"
[]="badgeOptions.capedValue"
[]="badgeOptions.unitLabel"
></nj-badge>
</button>
<ng-template
<ng-content select="[tab-content]"></ng-content>
</ng-template>