bitwarden-estensione-browser/components/src/form-field/hint.component.ts

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++}`;
}