Phone Input

A phone number input component.

Basic

Default Country

Installation

jsrepo add ui/phone-input

Default Value

Custom Country Ordering

Acknowledgements

This component takes inspiration from omeralpi/shadcn-phone-input.

API Reference

PhoneInput

The root component for the phone input.

PropTypeDefault
country? $bindable
CountryCode | null null
defaultCountry?
CountryCode | null null
name?
string -
placeholder? $bindable
string -
disabled? $bindable
boolean false
readonly? $bindable
boolean false
class?
string -
value? $bindable
E164Number | null null
valid? $bindable
boolean false
detailedValue? $bindable
Partial<DetailedValue> | null -
options?
TelInputOptions defaultOptions
order?
function -