# slider-verification-dialog

> A react component slider verification dialog

Latest version **1.0.0** (published 2019-01-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install slider-verification-dialog
pnpm add slider-verification-dialog
yarn add slider-verification-dialog
bun add slider-verification-dialog
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-01-23 |
| First published | 2019-01-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 15.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | liangxinwei |
| Maintainers | liangxinwei |
| Keywords | react, component, slider-verification-dialog |

## Links

- npm: https://www.npmjs.com/package/slider-verification-dialog
- Repository: https://github.com/liangxinwei/slider-verification-dialog
- Issues: https://github.com/liangxinwei/slider-verification-dialog/issues
- npm.io page: https://npm.io/package/slider-verification-dialog

## Dependencies (3)

- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [interactjs](https://npm.io/package/interactjs.md) ^1.3.4
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-01-23

## README

# slider-verification-dialog

## usage
```js
import React, {Component} from 'react';
import SliderVerificationDialog from 'slider-verification-dialog';

class Example extends Component {
  constructor(props) {
    super(props);
    this.state = {
      sliderVerifyVisible: false
    };
  }

  onSliderError = (param) => {
    console.log('slider error: ', param);
  };

  onSliderComplete = (param) => {
    console.log('slider success: ', param);
    this.closeSliderVerify();
  };

  closeSliderVerify = (type = 'hide') => {
    this.setState({sliderVerifyVisible: type === 'show'});
  };

  render() {
    const {sliderVerifyVisible} = this.state;
    return (
      <div className="main">
        <button onClick={this.closeSliderVerify.bind(this, 'show')}>open dialog</button>
        {sliderVerifyVisible &&
        <SliderVerificationDialog
          onClose={this.closeSliderVerify}
          onError={this.onSliderError}
          onComplete={this.onSliderComplete}/>}
      </div>
    );
  }
}
```

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