@ebay/ebayui-core
Version:
Collection of core eBay components; considered to be the building blocks for all composite structures, pages & apps.
19 lines (18 loc) • 652 B
TypeScript
import type { WithNormalizedProps } from "../../global";
export interface CheckboxEvent {
originalEvent: Event;
value: string;
checked: boolean;
}
interface CheckboxInput extends Omit<Marko.HTML.Input, `on${string}`> {
"icon-style"?: "rounded" | "square";
"on-change"?: (e: CheckboxEvent) => void;
"on-focus"?: (e: CheckboxEvent) => void;
"on-keydown"?: (e: CheckboxEvent) => void;
}
export interface Input extends WithNormalizedProps<CheckboxInput> {
}
declare class Checkbox extends Marko.Component<Input> {
forwardEvent(eventName: string, originalEvent: Event, el: HTMLInputElement): void;
}
export default Checkbox;