Skip to content

SwissAddressForm

Collect addresses in four languages with translated labels, validation messages, and canton names.

alpina-ui/swiss/swiss-address-form

Interactive preview

Indirizzo postale

I campi facoltativi sono indicati.

NPA: 4 cifre

Usage notes

Enter 6900 to choose Lugano, Massagno or Paradiso from the local postcode directory. Accepting a suggestion sets both locality and canton. You can also enter both manually.

When to use

Collect a recipient and a Swiss delivery address, with a locality suggestion after the postal code is entered.

When to avoid

Provide country-specific fields when someone can enter addresses outside Switzerland.

Accessibility

Keep the postal hint associated with its field. If multiple localities share a code, let the person choose and verify a keyboard-only correction.

Keys
KeyAction
Tab / Shift+TabMove through address fields, locality suggestions and the save button.
EnterSubmit the form, or follow a focused error link to its field.
↑ / ↓Choose a locality or canton in its native select.

Content

Use the postal abbreviation familiar in each language. Put the four-digit instruction below the label and leave street names in their original spelling.

Use
Postal code • Four digits
Avoid
Enter the location details here

Copy in four languages

German
Postleitzahl12 characters
French
NPA3 characters
Italian
NPA3 characters
Romansh
Numer postal12 characters
Add to your project
npx --no-install alpina add swiss-address-form