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.
- 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
- 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
Clone repo and run:
npm install
npm start
To build the component for production, run:
npm run build
Need help? Check out
- Stencil docs here.
- Publish to NPM