1.0.1 • Published 1 year ago

rc-gusture-unlock v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

rc-gusture-unlock

react component used in mobile

Live Demo

Simple: https://codesandbox.io/s/magical-robinson-roh9hz Methods: https://codesandbox.io/s/zlke2q

image

Install

rc-gusture-unlock

Usage

import GustureLock from 'rc-gusture-unlock';
import { render } from 'react-dom';

render(<GustureLock />, mountNode);

API

PropertyTypeDefaultDescription
classNamestring''additional class name of textarea
styleReact.CSSProperties-style properties of textarea
callBackfunction(e)-The callback function that is triggered when touchEnd is triggered
initColorstring'#A6A6A6'initial circle color
initColorstring'#A6A6A6'initial circle color
successColorstring'#3a85ff'success color
errorColorstring'red'error color
sizenumber280component's width or height

Methods

PropertyparamsDescription
success-show success status
error-show error status
reset-reset the component to initial stat

Development

npm install
npm start

License

rc-gusture-unlock is released under the MIT license.