Nuptial Predicament Mediation

    @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 事件
    }

    Keywords

    none

    Install

    npm i @hbtv/slider-input

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    6.45 kB

    Total Files

    8

    Last publish

    Collaborators

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