@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.
22 lines (21 loc) • 773 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;
};
export declare const StyledBarPart: import("styled-components").StyledComponent<({ width, left, theme, active, ...props }: any) => JSX.Element, import("styled-components").DefaultTheme, {
style: {
[x: string]: string;
width: string;
};
}, "style">;
interface Props {
value: Value;
max: number;
min: number;
onMouseDown: React.MouseEventHandler<HTMLDivElement>;
hasHistogram: boolean;
}
declare const Bar: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
export default Bar;