1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-05 19:23:19 +00:00
Files
browser/libs/components/src/select/option.component.ts
2025-07-16 08:39:37 -04:00

20 lines
602 B
TypeScript

// FIXME: Update this file to be type safe and remove this and next line
// @ts-strict-ignore
import { Component, booleanAttribute, input } from "@angular/core";
import { MappedOptionComponent } from "./option";
@Component({
selector: "bit-option",
template: `<ng-template><ng-content></ng-content></ng-template>`,
})
export class OptionComponent<T = unknown> implements MappedOptionComponent<T> {
readonly icon = input<string>();
readonly value = input.required<T>();
readonly label = input.required<string>();
readonly disabled = input(undefined, { transform: booleanAttribute });
}