mirror of
https://github.com/bitwarden/browser
synced 2025-12-25 12:43:36 +00:00
24 lines
499 B
TypeScript
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>) {}
|
|
}
|