@td-design/react-native
Version:
react-native UI组件库
33 lines • 911 B
TypeScript
import { FC } from 'react';
import { TextStyle } from 'react-native';
export interface SliderProps {
/** 最小值 */
min?: number;
/** 最大值 */
max?: number;
/** 当前值 */
value?: number;
/** 宽度 */
width?: number;
/** 标签文本宽度 */
labelWidth?: number;
/** 高度 */
height?: number;
/** 滑块拖动后触发事件 */
onChange?: (value: number) => void;
/** 滑块左侧颜色 */
foregroundColor?: string;
/** 滑块右侧颜色 */
backgroundColor?: string;
/** 滑块背景色 */
handleBackground?: string;
/** 是否显示滑块数字 */
showText?: boolean;
/** 滑块数字显示位置 */
textPosition?: 'top' | 'left' | 'right' | 'bottom';
/** 文本样式 */
textStyle?: TextStyle;
}
declare const Slider: FC<SliderProps>;
export default Slider;
//# sourceMappingURL=index.d.ts.map