@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.
17 lines • 577 B
TypeScript
import * as React from "react";
import type { Value } from "../../types";
export declare const calculateBarPosition: (value: Value, max: number, min: number, hasHistogram: boolean) => {
left: number;
width: number;
};
interface Props {
value: Value;
max: number;
min: number;
onMouseDown: React.MouseEventHandler<HTMLDivElement>;
hasHistogram: boolean;
ref?: React.Ref<HTMLDivElement>;
}
declare const Bar: ({ onMouseDown, value, max, min, hasHistogram, ref }: Props) => React.JSX.Element;
export default Bar;
//# sourceMappingURL=index.d.ts.map