Components · Forms · Phone Input
Back to Phone InputPhone InputNew
Use for a phone field with a country picker, formatting as you type and E.164 output.
Properties
Size, corner radius and the content options below are properties of the same component, not separate elements - change them to check this component's appearances and states in the Live Preview.
Live Preview
Every appearance side by side, each in every state. One full matrix is rendered per selected Size and Corner radius combination.
When to use
Sign-up, checkout and contact forms.
Component Guide
Overview
Phone Input pairs a searchable country picker with a number field that formats as you type and outputs an E.164 value.
When to Use
- Sign-up, checkout and contact forms.
- Two-factor setup before an SMS code.
When Not to Use
- Plain free-text storage - use Input.
- The verification code itself - use a one-time-code input.
- Carrier or number-type validation - that needs a full metadata library.
Best Practices
- Store the E.164 value and format it for display.
- Pin likely countries as suggested; restrict the list when you only ship to some.
- Confirm ownership with a one-time code when it matters.
Accessibility
- Search is a combobox over a grouped listbox.
- The country button is labelled "Country, <name> +<code>".
- Errors use role=alert after blur; a valid number is announced.
Related Components
Input, Password, Combobox, Select.
{
"component": "Phone Input",
"category": "Forms",
"summary": "Phone Input pairs a searchable country picker with a number field that formats as you type and outputs an E.164 value.",
"whenToUse": [
"Sign-up, checkout and contact forms.",
"Two-factor setup before an SMS code."
],
"whenNotToUse": [
"Plain free-text storage - use Input.",
"The verification code itself - use a one-time-code input.",
"Carrier or number-type validation - that needs a full metadata library."
],
"bestPractices": [
"Store the E.164 value and format it for display.",
"Pin likely countries as suggested; restrict the list when you only ship to some.",
"Confirm ownership with a one-time code when it matters."
],
"accessibility": [
"Search is a combobox over a grouped listbox.",
"The country button is labelled \"Country, <name> +<code>\".",
"Errors use role=alert after blur; a valid number is announced."
],
"relatedComponents": [
"Input",
"Password",
"Combobox",
"Select"
]
}