@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 (18 loc) • 529 B
Flow
// @flow
import * as React from "react";
import type { Value } from "../..";
export type Props = {|
value: Value,
max: number,
min: number,
onMouseDown: (event: SyntheticMouseEvent<HTMLDivElement>) => void,
hasHistogram: boolean,
|};
declare export default React.AbstractComponent<Props, HTMLElement>;
export type CalculateBarPosition = (
value: Value,
max: number,
min: number,
hasHistogram: boolean,
) => {| left: number, width: number |};
declare export var calculateBarPosition: CalculateBarPosition;