Skip to content

Components

Phone Input

A phone field with country selection and formatting.

Usage

Basic

HTML
<bs:bsui-phone-input defaultCountry="DE" />

Custom placeholder

A different starting country and a sample number in the local format.

HTML
<bs:bsui-phone-input name="phone" defaultCountry="GB" placeholder="7700 900123" />

Labelled field

Help text states why the number is being collected.

Used only for delivery updates.
HTML
<bs:bsui-field>
  <bs:bsui-field-label text="Mobile number" />
  <bs:bsui-phone-input name="mobile" defaultCountry="US" />
  <bs:bsui-field-description text="Used only for delivery updates." />
</bs:bsui-field>

Disabled

The country menu and the number field are locked together.

HTML
<bs:bsui-phone-input defaultCountry="DE" disabled="true" />

Attributes

AttributeTypeDefault
name text —
placeholder text Phone number
defaultCountry text US
disabled toggle false
nameAlt text —
onChange text —