Commmerce Docs

What it is

International phone input with a country dial-code dropdown, format-as-you-type, and validation.

When to use

  • Account profile phone field
  • Checkout shipping forms
  • Two-factor authentication setup

Attributes

AttributeTypeDefaultDescription
data-default-countrystringautoPre-selected country.
idstringUnique element identifier.
classstringCustom CSS class list.
hiddenbooleanfalseHide the element without removing it from the DOM.

Examples

Default

Auto-detected country + formatted input.

<mmm-phone-input></mmm-phone-input>