@unicity/design-system
Version:
A comprehensive React component library built on Material-UI with advanced theming capabilities including neumorphism design support
57 lines • 1.3 kB
TypeScript
import React from 'react';
import { SliderProps as MuiSliderProps } from '@mui/material';
export interface SliderProps extends Omit<MuiSliderProps, 'onChange'> {
/**
* The current value of the slider
*/
value?: number | number[];
/**
* Callback fired when the value changes
*/
onChange?: (value: number | number[]) => void;
/**
* The minimum allowed value
*/
min?: number;
/**
* The maximum allowed value
*/
max?: number;
/**
* The step increment
*/
step?: number;
/**
* Whether to show value labels
*/
valueLabelDisplay?: 'auto' | 'on' | 'off';
/**
* Label for the slider
*/
label?: string;
/**
* Whether to show min/max labels
*/
showMinMax?: boolean;
/**
* Custom marks on the slider
*/
marks?: boolean | Array<{
value: number;
label?: string;
}>;
/**
* Whether the slider is disabled
*/
disabled?: boolean;
/**
* The color of the slider
*/
color?: 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info';
/**
* The size of the slider
*/
size?: 'small' | 'medium';
}
export declare const Slider: React.FC<SliderProps>;
//# sourceMappingURL=Slider.d.ts.map