1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-02 01:33:22 +00:00
Files
browser/libs/components/src/select/option.component.ts
Oscar Hinton 5a582dfc6f [CL-135] Migrate component library to standalone components (#12389)
* Migrate component library to standalone components

* Fix tests
2024-12-17 17:29:48 -05:00

25 lines
577 B
TypeScript

// FIXME: Update this file to be type safe and remove this and next line
// @ts-strict-ignore
import { Component, Input, booleanAttribute } from "@angular/core";
import { Option } from "./option";
@Component({
selector: "bit-option",
template: `<ng-template><ng-content></ng-content></ng-template>`,
standalone: true,
})
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;
}