Skip to content

CantonCombobox

Find a canton by its abbreviation or its Italian, German, French, or Romansh name.

alpina-ui/swiss/canton-combobox

Interactive preview

Search for the same canton using Genève, Genf, or Ginevra.

No canton selected

Usage notes

Type a canton name in the active language. Alt+Down opens suggestions and Alt+Up dismisses them while preserving the committed canton.

When to use

Find a canton from its name or abbreviation without stepping through all the cantons.

When to avoid

Use CantonSelect when a short list is easier to scan than to search.

Accessibility

Provide a visible label, test selecting a suggestion with the keyboard and distinguish an empty search from a confirmed choice.

Keys
KeyAction
TypeFilter available choices.
↑ / ↓Open the list and move the active option.
EnterCommit the active option.
Escape / TabClose the list. Tab also moves focus out of the field.

Content

Keep the query hint to one brief instruction. Use a real abbreviation as an example only if both names and codes work.

Use
Search by name or abbreviation
Avoid
Enter internal territory identifier

Copy in four languages

German
Name oder Kürzel suchen23 characters
French
Rechercher un nom ou un sigle29 characters
Italian
Cercare per nome o sigla24 characters
Romansh
Tschertgar tenor num u abreviaziun34 characters
Add to your project
npx --no-install alpina add canton-combobox