mirror of
https://github.com/bitwarden/browser
synced 2026-02-02 01:33:22 +00:00
25 lines
577 B
TypeScript
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;
|
|
}
|