0.1.0-alpha.0 • Published 3 years ago

@i18n-components/input-number v0.1.0-alpha.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

@i18n-components/input-number

Web component to format input number based on locale.

Usage Vanilla Javascript 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

npm i @i18n-components/input-number
// Import IIFE
import '@i18n-components/input-number';

//Use in your component
<input type="tel" is="i18n-input-number" />