@bgunnarsson/tel-input
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "@bgunnarsson/tel-input", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "International Telephone Input javascript library", | ||
@@ -5,0 +5,0 @@ "type": "module", |
# TelInput Documentation | ||
# @bgunnarsson/tel-input | ||
@@ -9,12 +9,15 @@ TelInput is a customizable telephone input field with dropdown country selection. | ||
- Automatic dropdown with country codes and flags. | ||
- Default country and code configuration. | ||
- Priority and exclusion of specific countries. | ||
- Searchable dropdown for quick country lookup. | ||
- Pre-filled input field with country code. | ||
## Installation | ||
1. Include the `TelInput` class in your project. | ||
2. Ensure the `loadModules` function provides country and flag data. | ||
``` | ||
pnpm install @bgunnarsson/tel-input | ||
npm install @bgunnarsson/tel-input | ||
yarn add @bgunnarsson/tel-input | ||
``` | ||
## Usage | ||
@@ -62,10 +65,3 @@ | ||
### Methods | ||
#### Constructor | ||
Creates a new instance of `TelInput`. | ||
#### `init()` | ||
Initializes the component, loads modules, and sets up event listeners. | ||
## Example | ||
@@ -79,3 +75,3 @@ | ||
</div> | ||
``` | ||
``` | ||
@@ -89,3 +85,3 @@ ```javascript | ||
priority: ['is', 'us', 'gb'], | ||
exclude: ['al', 'af'] | ||
exclude: ['al', 'af'], | ||
search: { | ||
@@ -92,0 +88,0 @@ placeholder: 'Search countries...' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7172040
92