JSPM

react-pin-code-dev

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q9647F
  • License ISC

react pin code package for manage opt verify

Package Exports

  • react-pin-code-dev
  • react-pin-code-dev/index.jsx

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-pin-code-dev) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-pin-code

use of pin code import React from 'react'; import PinCode from "react-pin-code-dev";

define a state with array when show the value of state use join() function to get value as a int

Props you can pass such as value , length ,onChange , inputStyle you can apply your own style or design use inputStyle

const App = () => {

const [code, setCode] = React.useState(Array());
console.log(code.join(""));

return (
    <div>
     <PinCode value={code} length={6} onChange={(value) => setCode(value) } inputStyle={{background:"red"}}  />
    </div>
);

};

export default App;