react-wired-elements
Version:
Wired Elements as React components. TypeScript types included.
39 lines (38 loc) • 1.03 kB
TypeScript
import { BaseProps } from './types';
export interface WiredSliderProps extends BaseProps {
/**
* The numeric value of the slider.
* @default 30
*/
value?: number;
/**
* The minimum value.
* @default 0
*/
min?: number;
/**
* The maximum value.
* @default 100
*/
max?: number;
/**
* Color of the knob when the value is at minimum.
* @default black
*/
knobZeroColor?: string;
/**
* Color of the knob when the value is not at minimum.
* @default rgba(0, 0, 200, 0.8)
*/
knobColor?: string;
/**
* Color of the bar on which the knob slides.
* @default currentColor
*/
barColor?: string;
/**
* Event fired when the user changes the slider value.
*/
onChange?(e: CustomEvent): void;
}
export declare const WiredSlider: ({ value, min, max, knobZeroColor, knobColor, barColor, onChange, className, style, }: WiredSliderProps) => JSX.Element;