UNPKG

@i18n-components/input-number

Version:

Web component to format input number based on locale

35 lines (26 loc) 631 B
# `@i18n-components/input-number` > Web component to format input number based on locale. ## Usage Vanilla Javascript HTML ```html <!DOCTYPE html> <html> <head> <title>Input Number</title> <meta charset="UTF-8" /> </head> <body> <script src="https://unpkg.com/@i18n-components/input-number@latest/dist/index.js"></script> <input type="tel" is="i18n-input-number" /> </body> </html> ``` ## Usage React/Angular/Vue ```bash npm i @i18n-components/input-number ``` ```jsx // Import IIFE import '@i18n-components/input-number'; //Use in your component <input type="tel" is="i18n-input-number" /> ```