Skip to content
Suggestion bar, light
Light
Suggestion bar, dark
Dark

Every state

  • Suggestion bar, default, light
    Suggestion bar, default, dark

    default

  • Suggestion bar, hover, light
    Suggestion bar, hover, dark

    hover

  • Suggestion bar, focus, light
    Suggestion bar, focus, dark

    focus

  • Suggestion bar, focus-stay, light
    Suggestion bar, focus-stay, dark

    focus-stay

  • Suggestion bar, german, light
    Suggestion bar, german, dark

    german

  • Suggestion bar, french, light
    Suggestion bar, french, dark

    french

Props

PropTypeDefaultWhat it does
pageLanguagestring"nl"Code of the language the page is in ("nl").
offersRecord<string, LocalePickerSuggestionOffer>{ en: { title: "Switch to English?", text: "This page is also in English, with the same prices and delivery.", switch…What to say for each language the site has, keyed by BCP 47 code ("en", "de").
suggeststring | null"en"The language offered on the server and first render (a guess from Accept-Language, or the demo). Null: no bar until the browser is read.
detectbooleantrueRead navigator.languages after mounting and offer the best match. False: show `suggest` as given.
onDismiss(offered: string) => void–Called when the visitor keeps the page's language, so you can stop asking.
onSwitch(code: string) => void–Called with the language code before the switch link is followed.
classNamestring–Extra classes on the outer element.

More locale pickers

All 4
locale-picker-04 is in UI ProGet UI Pro, €199

Preview

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

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