

Every state


default


hover


focus


filtered


picked


empty
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "ship-to" | Base for the ids of the field, list and options. Unique on the page. |
| label | string | "Ship to" | Visible label. |
| placeholder | string | "Search countries" | Placeholder text. |
| countries | LocalePickerCountry[] | [ { code: "AT", name: "Austria", language: { code: "de", name: "Deutsch" }, currency: { code: "EUR", name: "Euro" } }… | Countries. |
| current | string | "IE" | Code of the country you are in now; it starts picked. |
| labels | { language: string; currency: string; changes: string; unchanged: string; confirm: string; noResults: string; oneResult: string; results: string } | { language: "Language", currency: "Currency", changes: "Changes when you confirm", unchanged: "Your current settings"… | Words for the summary and the list; `results` is read out once typing pauses, with {n} for the count. |
| onConfirm | (country: LocalePickerCountry) => void | – | Called with the picked country when Confirm is pressed. |
| className | string | – | Extra classes on the outer element. |
More locale pickers
All 4locale-picker-01 is in UI ProGet UI Pro, €199


