Components/PhoneInput

PhoneInput

International phone input with country dial code selector.

Installation

Examples

International phone field

Country selector + number input.

πŸ‡ΊπŸ‡Έ+1
πŸ‡΅πŸ‡­+63
πŸ‡¬πŸ‡§+44
πŸ‡¦πŸ‡Ί+61

API Reference

PropTypeDefaultDescription
valuestringβ€”Controlled value.
onChange(v: string) => voidβ€”Called on change.
defaultCountrystring'US'ISO country code for default dial prefix.
invalidbooleanfalseError state.
size'sm'|'md'|'lg''md'Controls height.