AtomValidationCode
Component to input a validation code.
Installation
$ npm install @s-ui/react-atom-validation-code
Usage
Basic usage
Import package and use the component
import AtomValidationCode from '@s-ui/react-atom-validation-code'
return (
<AtomValidationCode
onChange={handleChange}
label="Verification code"
lenght={6}
/>)
Import the styles (Sass)
@import '~@s-ui/theme/lib/index';
/* @import 'your theme'; */
@import '~@s-ui/react-atom-validation-code/lib/index';
Find full description and more examples in the demo page.