svelte-o-phone
A flexible, headless phone number input component with country selection, formatting, and validation.
Svelte 5 TypeScript Headless Accessible
Basic Usage
The basic setup for a phone number picker.
Output
Installation
More package managers coming soon...
Copy
This component relies on libphonenumber-js for phone number parsing, formatting, and validation. This package will be installed automatically when you install svelte-o-phone.
More Examples
Explore different customizations and features.
Alphabetic Sorting
Sorts countries alphabetically by name.
Copy
Allowed Countries
Limits the country selection to a specified list.
Copy