@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 • 893 B
TypeScript
import type * as Common from "../common/types";
export type Label = string | string[];
export type Value = number | number[];
export type Data = number[];
export type Callback = (value: Value) => void | Promise<void>;
export interface Props extends Common.Globals {
readonly minValue?: number;
readonly maxValue?: number;
readonly step?: number;
readonly defaultValue?: Value;
readonly onChange?: Callback;
readonly onChangeBefore?: Callback;
readonly onChangeAfter?: Callback;
readonly label?: Common.Translation;
readonly valueDescription?: Common.Translation;
readonly ariaLabel?: Label;
readonly ariaValueText?: string;
readonly histogramData?: Data;
readonly histogramDescription?: Common.Translation;
readonly histogramLoading?: boolean;
readonly histogramLoadingText?: Common.Translation;
}
//# sourceMappingURL=types.d.ts.map