# @hbtv/slider-input

> 适用于 ant-design 4.x Form 的slider + inputNumber

Latest version **1.0.1** (published 2020-11-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @hbtv/slider-input
pnpm add @hbtv/slider-input
yarn add @hbtv/slider-input
bun add @hbtv/slider-input
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-11-20 |
| First published | 2020-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | aa719032411, xuezhidp, gogoing, dokey, yugong, zix2002 |

## Links

- npm: https://www.npmjs.com/package/@hbtv/slider-input
- Repository: /nebula-library
- npm.io page: https://npm.io/package/@hbtv/slider-input

## Dependencies (1)

- [antd](https://npm.io/package/antd.md) ^4.x

## Recent versions

- 1.0.1 (latest) — 2020-11-20
- 1.0.0 — 2020-11-17

## README

# @hbtv/slider-input

## 安装方法

`yarn add @hbtv/slider-input`

## 使用方法

```tsx
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;
```


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

---
_Source: https://npm.io/package/@hbtv/slider-input · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
