UNPKG

@jengaui/slider

Version:

Jenga UI Slider component in React

21 lines (18 loc) 974 B
import * as react from 'react'; import * as _react_types_shared from '@react-types/shared'; import { FormFieldProps } from '@jengaui/form'; import { BasePropsWithoutChildren, OuterStyleProps, BlockStyleProps, Styles } from 'tastycss'; import { SliderValue } from './helpers.js'; import { AriaSliderProps, SliderProps } from '@react-types/slider'; interface JengaRangeSliderProps extends AriaSliderProps<SliderValue>, SliderProps<SliderValue>, BasePropsWithoutChildren, OuterStyleProps, FormFieldProps, BlockStyleProps { showInput?: boolean; inputSuffix?: string; inputStyles?: Styles; gradation?: string[]; onChange?: (range: SliderValue) => void; onChangeEnd?: (range: SliderValue) => void; } declare const __RangeSlider: react.ForwardRefExoticComponent<JengaRangeSliderProps & react.RefAttributes<_react_types_shared.DOMRefValue<HTMLDivElement>>> & { jengaInputType: string; }; export { JengaRangeSliderProps, __RangeSlider as RangeSlider };