You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c816118
Browse filesBrowse the repository at this point in the historyBrowse files
|`className`|`string`| No | — | Additional CSS classes |
65
131
66
132
The selected value is a full BCP 47 tag: its **region** subtag is the picked
67
133
region, and its **language** subtag survives region changes. Picking Germany
@@ -100,11 +166,13 @@ announced through `aria-activedescendant`.
100
166
## Features
101
167
102
168
-**Derived defaults** — currency, date format, number format, and first day of week, resolved live through `Intl`
103
-
-**Dropdown with search** — filter regions by English name, localized name, or code
169
+
-**Dropdown with search** — filter regions by English name, localized name, or region code, with a clear button
170
+
-**Motion** — the popup fades and slides via `motion/react`, honouring `prefers-reduced-motion`, and leaves the accessibility tree as it closes
104
171
-**RTL-aware** — flips direction for RTL locales (ar, he, fa, ur) via `dir` on the root
105
172
-**Keyboard accessible** — arrow keys, Home / End, Enter, and Escape navigation
106
173
-**ARIA labels** — `role="combobox"` search field with `aria-activedescendant`, plus `aria-expanded`, `aria-haspopup`, and `aria-selected`
107
-
-**Dark mode** — built with Tailwind CSS, dark-mode compatible
174
+
-**Themed with shadcn tokens** — `bg-popover`, `border-input`, `bg-accent` and friends, so it inherits your theme; dark mode comes from the tokens
175
+
-**Customisable** — `variant` / `size` triggers plus per-part `classNames` (`LocalePickerClassNames` is exported from the barrel), with `lucide-react` icons throughout
108
176
-**Controlled or uncontrolled** — `value` / `defaultValue` / `onValueChange`
109
177
110
178
## Examples
@@ -129,6 +197,8 @@ With `de-DE` selected, the trigger reads "Deutschland" and the options read
129
197
This component uses:
130
198
131
199
-`clsx` and `tailwind-merge` (bundled as dependencies)
0 commit comments