PhoneInput
Accept domestic and international input and display a Swiss +41 number.
alpina-ui/swiss/phone-inputEnter a domestic number or include +41.
Usage notes
Accept ordinary nine-digit Swiss national numbers, domestic trunk prefixes and international +41 or 0041 input. Format valid entries on blur. Short service codes use a separate field.
When to use
Ask for a Swiss callback number and display it in international +41 format.
When to avoid
Use an international telephone field when contacts may need a foreign number or an extension.
Accessibility
Use a visible phone label and a telephone keyboard. Make the format hint available after typing and offer a clear correction for the country prefix.
| Key | Action |
|---|---|
| Tab / Shift+Tab | Enter or leave the field. A valid identifier is formatted when focus leaves. |
| Text editing | Type, select, paste and correct the value with the platform’s editing keys. |
Content
Say whether the number is for a callback. Keep +41 in the format hint, outside the field name.
- Use
- Callback number
- Avoid
- Contact ID
Copy in four languages
- German
- Telefonnummer für Rückruf25 characters
- French
- Numéro de rappel16 characters
- Italian
- Numero per essere richiamati28 characters
- Romansh
- Numer per clamar enavos23 characters
npx --no-install alpina add phone-input