/pin-code-stencyl

Primary LanguageTypeScriptMIT LicenseMIT

Built With Stencil

Pin Code Input

This is Pin Code Input component using hidden input field and render it's input. It allows to enter any charaters. After entering full pin, it will be emitted as 'enter' event. On mobile it shows numeric keyboard.

Using this component

Script tag

  • Put a script tag similar to this <script src='https://unpkg.com/@kolombet/pin-code@1.0.5/dist/pin-code.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Node Modules

  • Run npm install my-component --save
  • Put a script tag similar to this <script src='node_modules/@kolombet/pin-code@1.0.5/dist/pin-code.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Building/fork this component

Clone repo and run:

npm install
npm start

To build the component for production, run:

npm run build

Need help? Check out