@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.
27 lines (24 loc) • 924 B
TypeScript
// Type definitions for @kiwicom/orbit-components
// Project: http://github.com/kiwicom/orbit
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;
}