@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.
20 lines (15 loc) • 707 B
TypeScript
// Type definitions for @kiwicom/orbit-components
// Project: http://github.com/kiwicom/orbit
import * as React from "react";
import * as Common from "../common/common";
export interface Props extends Common.Global, Common.Ref {
readonly icon?: React.ReactNode;
readonly checked: boolean;
readonly ariaLabelledby?: string;
readonly disabled?: boolean;
readonly onChange: Common.Event<React.SyntheticEvent<HTMLInputElement>>;
readonly onFocus?: Common.Event<React.SyntheticEvent<HTMLInputElement>>;
readonly onBlur?: Common.Event<React.SyntheticEvent<HTMLInputElement>>;
}
declare const Switch: React.ForwardRefRenderFunction<HTMLInputElement, Props>;
export { Switch, Switch as default };