react-language-combobox 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,7 +32,8 @@ function App(){
|
|
|
32
32
|
showFlags={true}
|
|
33
33
|
showEnglishNames={true}
|
|
34
34
|
languageChanged={(lng) => i18n.changeLanguage(lng)}
|
|
35
|
-
|
|
35
|
+
showSearchBox={true}
|
|
36
|
+
searchBoxPlaceholder={i18n.t("SearchPlaceHolder")}/>
|
|
36
37
|
|
|
37
38
|
<h1>{t('WelcomeToReact')}</h1>
|
|
38
39
|
)
|
|
@@ -51,6 +52,7 @@ Available exports
|
|
|
51
52
|
|
|
52
53
|
- `LanguagePicker` — main component
|
|
53
54
|
- `defaultTheme` — default theme class names (Tailwind-friendly)
|
|
55
|
+
- `darkTheme` - dark theme (Tailwind-friendly)
|
|
54
56
|
- Types: `LanguagePickerProperties`, `LanguagePickerTheme`
|
|
55
57
|
|
|
56
58
|
Props / Options
|
|
@@ -66,7 +68,7 @@ The component accepts a `LanguagePickerProperties` object with these fields:
|
|
|
66
68
|
- `showFlags?: boolean` — when true, shows flag icons next to languages (default: `true`).
|
|
67
69
|
- `showEnglishNames?: boolean` — when true, display language names in English rather than the selected locale.
|
|
68
70
|
- `theme?: LanguagePickerTheme` — override default classes for styling. See below.
|
|
69
|
-
|
|
71
|
+
- `searchBoxPlaceholder : string` - placeholder of the search box.
|
|
70
72
|
Theme
|
|
71
73
|
-----
|
|
72
74
|
|
|
@@ -77,6 +79,8 @@ Theme
|
|
|
77
79
|
- `list` — classes for the dropdown list (default includes absolute positioning, border, max-height and scrolling behavior).
|
|
78
80
|
- `item` — classes for each list item (hover/focus state classes recommended).
|
|
79
81
|
- `selectedItem` — classes applied to the selected list item.
|
|
82
|
+
- `searchBox` - classes applied to the searchbox.
|
|
83
|
+
- `searchBoxContainer` - classes applied to the searchbox container.
|
|
80
84
|
|
|
81
85
|
Accessibility
|
|
82
86
|
-------------
|