@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.
33 lines (27 loc) • 897 B
Flow
// @flow
/*
DOCUMENTATION: https://orbit.kiwi/components/stepper/
*/
import * as React from "react";
import type { Globals } from "../common/common.js.flow";
import type { StepperStatelessType } from "./StepperStateless";
export type SharedProps = {|
...Globals,
+name?: string,
+disabled?: boolean,
+maxValue?: number,
+size?: "small" | "normal",
+minValue?: number,
+titleIncrement?: string | (any => string),
+titleDecrement?: string | (any => string),
+onChange?: (value: number) => void | Promise<any>,
+onFocus?: (ev: SyntheticInputEvent<HTMLInputElement>) => void | Promise<any>,
+onBlur?: (ev: SyntheticInputEvent<HTMLInputElement>) => void | Promise<any>,
|};
export type Props = {|
...SharedProps,
+defaultValue?: number,
+step?: number,
|};
declare export var StepperStateless: StepperStatelessType;
declare export default React.ComponentType<Props>;