PhoneNumberInput

A text input field for norwegian 8-digits phone number inputs.

The PhoneNumberInput field is used to type in users phone numbers. The input formats norwegian phone numbers in groups of two. If landcodes other than norwegian is provided, the input will not be formatted.

Below is the simplest example, only the input field with the numbers visible to the user.

Basic usage

In many use-cases the it is also useful to include a label for more information about the input. Also you might wish to decorate the input with a placholder or a descriptive phone icon on the left.

Label, placeholder and icon usage

The phone number input also provides error handling.

Error usage

This guide is based on version: 3.3.1