1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-25 12:43:36 +00:00
Files
browser/libs/components/src/tabs/tab-group/tab-label.directive.ts
Oscar Hinton 5a582dfc6f [CL-135] Migrate component library to standalone components (#12389)
* Migrate component library to standalone components

* Fix tests
2024-12-17 17:29:48 -05:00

24 lines
499 B
TypeScript

import { Directive, TemplateRef } from "@angular/core";
/**
* Used to identify template based tab labels (allows complex labels instead of just plaintext)
*
* @example
* ```
* <bit-tab>
* <ng-template bitTabLabel>
* <i class="bwi bwi-search"></i> Search
* </ng-template>
*
* <p>Tab Content</p>
* </bit-tab>
* ```
*/
@Directive({
selector: "[bitTabLabel]",
standalone: true,
})
export class TabLabelDirective {
constructor(public templateRef: TemplateRef<unknown>) {}
}