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

npm i @kevwpl/svelte-o-phone

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.

Allowed Countries

Limits the country selection to a specified list.