mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Move to libs
This commit is contained in:
18
libs/components/src/form-field/suffix.directive.ts
Normal file
18
libs/components/src/form-field/suffix.directive.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Directive, HostBinding, Input } from "@angular/core";
|
||||
|
||||
import { PrefixClasses } from "./prefix.directive";
|
||||
|
||||
@Directive({
|
||||
selector: "[bitSuffix]",
|
||||
})
|
||||
export class BitSuffixDirective {
|
||||
@HostBinding("class") @Input() get classList() {
|
||||
return PrefixClasses.concat([
|
||||
"tw-rounded-l-none",
|
||||
"tw-border-l-0",
|
||||
!this.last ? "tw-rounded-r-none" : "",
|
||||
]).filter((c) => c != "");
|
||||
}
|
||||
|
||||
@Input() last = false;
|
||||
}
|
||||
Reference in New Issue
Block a user