Skip to content
Footer selector, light
Light
Footer selector, dark
Dark

Every state

  • Footer selector, default, light
    Footer selector, default, dark

    default

  • Footer selector, hover, light
    Footer selector, hover, dark

    hover

  • Footer selector, focus, light
    Footer selector, focus, dark

    focus

  • Footer selector, changed, light
    Footer selector, changed, dark

    changed

  • Footer selector, other-region, light
    Footer selector, other-region, dark

    other-region

  • Footer selector, narrow, light
    Footer selector, narrow, dark

    narrow

Props

PropTypeDefaultWhat 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.
actionstring"/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.
classNamestring–Extra classes on the outer element.

More locale pickers

All 4

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans