A Svelte based internation phone number input field that has full validation for international numbers and a dropdown menu to pick the country code
This project is not yet complete, I will update this later.
yarn build
public
folderpublic/index.html
filevendor
folder (accesible from index.html
)defer
attribute<script defer src="vendor/svelte-custom-element.0.1.0.min.js"></script>
index.html
and enjoy the web componentstart
: alias of yarn storybook
build
: builds your app as a web component and outputs a minified and a normal version to /dist
storybook
: runs the storybook, this is used when develop because of the live reloadingtest
: runs all test inside src/
and tries to build the widgetCurrently this component has support for i18n, but I do not have the resources or time to fully implement the translations. If anyone wants to contribute to the translations feel free to create a PR, any help is appreciated.