1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-09 05:57:40 +02:00
bitwarden-browser/libs/components/src/select/option.component.ts
Victoria League 08a6f91411
[CL-221] Add chip-select component (#9021)
---------

Co-authored-by: William Martin <contact@willmartian.com>
2024-05-23 16:30:55 -04:00

22 lines
463 B
TypeScript

import { Component, Input, booleanAttribute } from "@angular/core";
import { Option } from "./option";
@Component({
selector: "bit-option",
template: `<ng-template><ng-content></ng-content></ng-template>`,
})
export class OptionComponent<T = unknown> implements Option<T> {
@Input()
icon?: string;
@Input({ required: true })
value: T;
@Input({ required: true })
label: string;
@Input({ transform: booleanAttribute })
disabled: boolean;
}