SGDS version 3 is now available 🎉 We are updating this portal. In the meantime, please visit our storybook for the latest updates.

Phone Number

Use this pattern when you need to ask users for their phone number

Example

+65

    <label class="form-label" for="phone">Phone Number</label>
    <div class="input-group">
      <span class="input-group-text">+65</span>
      <input class="form-control" type="text" id="phone" autocomplete="tel-local" pattern="[0-9]" maxlength="8" />
    </div>

Usability guidelines

Explain the rationale of requesting for users' phone number.
This allows users to:

  • Feel assured that their phone number will not be misappropriated.
  • Choose which phone number they prefer to use.

Make sure it works for all users

  • Your text field should accommodate only numbers and 8 characters.
  • Set the autocomplete attribute to tel-local so that browsers can fill in their phone number if they have entered in previously.


Last updated 02 October 2024

Singapore Government Design System

The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.
About Us Components Patterns Templates SGDS Github Repo SGDS React Storybook SGDS v1.4.0 SGDS React v1 Singapore Government Developer Portal Isomer
Home


Latest version 2.3.6