1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-23 16:13:21 +00:00
Files
browser/libs/components/src/form-control/hint.directive.ts
2025-11-24 18:03:16 +01:00

15 lines
337 B
TypeScript

import { Directive, HostBinding } from "@angular/core";
// Increments for each instance of this component
let nextId = 0;
@Directive({
selector: "bit-hint",
host: {
class: "tw-text-muted tw-font-normal tw-inline-block tw-mt-1 tw-text-xs",
},
})
export class BitHintDirective {
@HostBinding() id = `bit-hint-${nextId++}`;
}