mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
Move to libs
This commit is contained in:
14
libs/components/src/form-field/hint.component.ts
Normal file
14
libs/components/src/form-field/hint.component.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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++}`;
|
||||
}
|
||||
Reference in New Issue
Block a user