Skip to Content
glob.ui home
Components

Phone input

A telephone field with a country picker. The picker searches by country name, dial code and ISO code.

Client componentUses state or handlers, so it starts with "use client".
import { PhoneInput, phoneInputVariants } from "@glob-ui/phone-input"

Preview

United States+1
United Kingdom+44
Canada+1
Mexico+52
Argentina+54
Brazil+55
Chile+56
Colombia+57
Peru+51
Spain+34
France+33
Germany+49
Italy+39
Portugal+351
Netherlands+31
Belgium+32
Switzerland+41
Sweden+46
Norway+47
Denmark+45
Finland+358
Ireland+353
Austria+43
Poland+48
Russia+7
Turkey+90
India+91
China+86
Japan+81
South Korea+82
Australia+61
New Zealand+64
South Africa+27
Nigeria+234
Egypt+20
Morocco+212
Israel+972
Saudi Arabia+966
United Arab Emirates+971
Singapore+65
Hong Kong+852
Malaysia+60
Philippines+63
Thailand+66
Vietnam+84
Indonesia+62
Pakistan+92
Bangladesh+880
Ukraine+380
Romania+40
Czech Republic+420
Greece+30
Hungary+36
Slovakia+421
Croatia+385
Costa Rica+506
Panama+507
Dominican Republic+1
Puerto Rico+1
Ecuador+593
Venezuela+58
Uruguay+598
Paraguay+595
Bolivia+591
Cuba+53
Kenya+254
Ghana+233
Tanzania+255
Ethiopia+251
Algeria+213
Tunisia+216

Examples

With a Field

Field labels the telephone input and shows its error.

United States+1
United Kingdom+44
Canada+1
Mexico+52
Argentina+54
Brazil+55
Chile+56
Colombia+57
Peru+51
Spain+34
France+33
Germany+49
Italy+39
Portugal+351
Netherlands+31
Belgium+32
Switzerland+41
Sweden+46
Norway+47
Denmark+45
Finland+358
Ireland+353
Austria+43
Poland+48
Russia+7
Turkey+90
India+91
China+86
Japan+81
South Korea+82
Australia+61
New Zealand+64
South Africa+27
Nigeria+234
Egypt+20
Morocco+212
Israel+972
Saudi Arabia+966
United Arab Emirates+971
Singapore+65
Hong Kong+852
Malaysia+60
Philippines+63
Thailand+66
Vietnam+84
Indonesia+62
Pakistan+92
Bangladesh+880
Ukraine+380
Romania+40
Czech Republic+420
Greece+30
Hungary+36
Slovakia+421
Croatia+385
Costa Rica+506
Panama+507
Dominican Republic+1
Puerto Rico+1
Ecuador+593
Venezuela+58
Uruguay+598
Paraguay+595
Bolivia+591
Cuba+53
Kenya+254
Ghana+233
Tanzania+255
Ethiopia+251
Algeria+213
Tunisia+216

Enter a valid phone number.

API

Props are generated from the TypeScript types in the package source.

PhoneInputProps

Prop

Type

Accessibility

Key or actionBehaviour
Country pickerA combobox named "Country code". Works like Select: Enter or ArrowDown opens it, typing searches by name, dial code or ISO code, Enter selects, Escape closes.
Telephone inputA native type="tel" input. Name it with Field or aria-label.

ARIA. The country picker is a combobox with a listbox, as in Select. The telephone input is a native input, so the Field label, description and error apply to it.

On this page