1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00
Files
browser/libs/components/src/form-field/hint.component.ts
2022-06-03 16:24:40 +02:00

15 lines
311 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-inline-block tw-mt-1",
},
})
export class BitHintComponent {
@HostBinding() id = `bit-hint-${nextId++}`;
}