@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.
28 lines (23 loc) • 717 B
Flow
// @flow
/*
DOCUMENTATION: https://orbit.kiwi/components/checkbox/
*/
import * as React from "react";
import type { StyledComponent } from "styled-components";
import type { Globals } from "../common/common.js.flow";
export type Props = {|
+label?: React.Node,
+value?: string,
+hasError?: boolean,
+disabled?: boolean,
+checked?: boolean,
+name?: string,
+info?: React.Node,
+tabIndex?: string | number,
+readOnly?: boolean,
+tooltip?: React.Element<any>,
+onChange?: (ev: SyntheticInputEvent<HTMLInputElement>) => void | Promise<any>,
...Globals,
|};
declare export default React.AbstractComponent<Props, HTMLElement>;
declare export var Label: StyledComponent<any, any, HTMLElement>;