decentraland-ui
Version:
Decentraland's UI components and styles
18 lines (17 loc) • 734 B
TypeScript
import React from 'react';
import { Field } from '../Field/Field';
import './RangeField.css';
export declare type RangeFieldProps = {
rangeLimitMin?: number;
rangeLimitMax?: number;
value?: [number | string | undefined, number | string | undefined] | [];
minLabel?: string;
maxLabel?: string;
className?: string;
minProps?: Partial<Field['props']>;
maxProps?: Partial<Field['props']>;
id?: string;
onChange: (value: [string, string], evt: React.ChangeEvent<HTMLInputElement>) => void;
onBlur?: () => void;
};
export declare const RangeField: ({ rangeLimitMin, rangeLimitMax, value, minLabel, maxLabel, className, minProps, maxProps, id, onChange, onBlur }: RangeFieldProps) => JSX.Element;