@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.
25 lines (20 loc) • 679 B
Flow
// @flow
/*
DOCUMENTATION: https://orbit.kiwi/components/choicegroup/
*/
import type { Globals, Translation } from "../common/common.js.flow";
type LabelSize = "normal" | "large";
type LabelAs = "h2" | "h3" | "h4" | "h5" | "h6";
export type Filters = { label: string, value: string };
export type Props = {|
...Globals,
children: React$Node,
label?: Translation,
labelSize?: LabelSize,
labelAs?: LabelAs,
error?: Translation,
filter?: boolean,
onOnlySelection?: (SyntheticEvent<HTMLButtonElement>, {}) => void | Promise<any>,
onChange: (SyntheticInputEvent<HTMLInputElement>) => void | Promise<any>,
|};
declare export default React$ComponentType<Props>;