@hbtv/slider-input
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@hbtv/slider-input

安装方法

yarn add @hbtv/slider-input

使用方法

import React,{ useState } from 'react'; 
import ColorPicker from './index';

const Usage = () => {
  const [width, setWidth] = useState(0);
  return (
    <div>
     宽度:<SliderInput value={width} onChange={setWidth} />
    </div>
  );
}

export default Usage;
export interface SliderInputProps {
  suffix?: string | ReactNode; // 后缀
  style?: CSSProperties; // 样式
  min?: number; // 最小值
  max?: number; // 最大值
  step?: number; // 步长
  value?: number; // 当前值
  onChange?: (changeValue?: number | string) => void; // change 事件
}

Dependents (1)

Package Sidebar

Install

npm i @hbtv/slider-input

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

6.45 kB

Total Files

8

Last publish

Collaborators

  • gegang
  • zix2002
  • yugong
  • dokey
  • gogoing
  • xuezhidp
  • aa719032411