

Every state


default


hover


focus


changed


other-region


narrow
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| regions | { code: string; label: string }[] | [ { code: "ie", label: "Ireland · EUR" }, { code: "gb", label: "United Kingdom · GBP" }, { code: "nl", label: "Nether… | Regions you sell to: a code (sent as `region`) and a label that can carry the currency ("Ireland · EUR"). |
| languages | { code: string; ownName: string }[] | [ { code: "en", ownName: "English" }, { code: "nl", ownName: "Nederlands" }, { code: "de", ownName: "Deutsch" }, { co… | Languages: a BCP 47 code (sent as `lang`) and the language's name in that language ("Deutsch"). |
| current | { region: string; language: string } | { region: "ie", language: "en" } | The region and language the page is in now. |
| action | string | "/locale" | Where the form goes (GET, with `region` and `lang`). |
| labels | { region: string; language: string; update: string } | { region: "Region and currency", language: "Language", update: "Update" } | Hidden labels of the two selects, and the button. |
| onChange | (value: { region: string; language: string }, event: FormEvent<HTMLFormElement>) => void | – | Called with the new choice when Update is pressed; the form is still sent unless you call preventDefault. |
| className | string | – | Extra classes on the outer element. |


