@ebay/ebayui-core
Version:
Collection of core eBay components; considered to be the building blocks for all composite structures, pages & apps.
16 lines (15 loc) • 496 B
TypeScript
import type { WithNormalizedProps } from "../../global";
export interface SwitchEvent {
originalEvent: Event;
value: string;
checked: boolean;
}
interface SwitchInput extends Omit<Marko.HTML.Input, `on${string}`> {
"on-change"?: (event: SwitchEvent) => void;
}
export interface Input extends WithNormalizedProps<SwitchInput> {
}
declare class Switch extends Marko.Component<Input> {
handleChange(originalEvent: Event, target: HTMLInputElement): void;
}
export default Switch;