

Every state


default


hover


focus


other-language


open


focus-option


hover-option
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| languages | LocalePickerLanguage[] | [ { code: "en", ownName: "English", name: null, href: "/en/" }, { code: "nl", ownName: "Nederlands", name: "Dutch", h… | Languages. |
| current | string | "en" | Code of the language the page is in; it is marked and named on the button. |
| title | string | "Choose your language" | Title text. |
| intro | string | null | "The shop, prices and delivery stay the same." | A line under the title. Null or left out: no line. |
| buttonLabel | string | "Language:" | Accessible name of the button, before the current language ("Language:"). |
| closeLabel | string | "Close" | Close label. |
| defaultOpen | boolean | – | Open the dialog on mount (previews, a first visit). |
| onSelect | (language: LocalePickerLanguage) => void | – | Called with the chosen language before the link is followed. |
| className | string | – | Extra classes on the outer element. |
More locale pickers
All 4locale-picker-02 is in UI ProGet UI Pro, €199


