@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.
23 lines (17 loc) • 483 B
Flow
// @flow
import type { Value } from "../../index";
export type Props = {|
value: Value,
max: number,
min: number,
onMouseDown: (event: SyntheticMouseEvent<HTMLDivElement>) => void,
hasHistogram: boolean,
|};
declare export default React$ComponentType<Props>;
export type CalculateBarPosition = (
value: Value,
max: number,
min: number,
hasHistogram: boolean,
) => { left: number, width: number };
declare export var calculateBarPosition: CalculateBarPosition;