Phone input
A phone input adds a country picker with flags and dial codes in front of a telephone field.
Basic
Add data-bs-toggle="phone-input" to a type="tel" input and pick the start country with data-bs-country.
Preferred countries
List the countries your users come from first with data-bs-preferred-countries.
Only some countries
Limit the list with data-bs-only-countries.
Number with a dial code
A number that starts with + selects its country. Paste one to try it.
Full number in a form
Set data-bs-hidden-input="phone" to submit the number as +48600100200.
Sizes
The picker follows .form-control-sm and .form-control-lg of the input.
Validation
Add .is-valid or .is-invalid to the input.
Looks good.
Enter a full phone number.
Formatting
The number is written in the format of the country while typing. Set data-bs-format="false" to turn it off.
Disabled
Add disabled to the input. The picker is disabled too.