We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca04d51 commit ef3b2faCopy full SHA for ef3b2fa
packages/clay-core/src/language-picker/index.tsx
@@ -49,6 +49,11 @@ type Props = {
49
50
classNamesTrigger?: string;
51
52
+ /**
53
+ * Property to set the default value of `active` (uncontrolled).
54
+ */
55
+ defaultActive?: boolean;
56
+
57
/**
58
* Flag to hide the text in the trigger.
59
*/
@@ -197,6 +202,7 @@ Trigger.displayName = 'Trigger';
197
202
const ClayLanguagePicker = ({
198
203
active,
199
204
classNamesTrigger,
205
+ defaultActive = false,
200
206
hideTriggerText,
201
207
id,
208
messages = {
@@ -226,6 +232,7 @@ const ClayLanguagePicker = ({
226
232
])}
227
233
as={Trigger}
228
234
classNamesTrigger={classNamesTrigger}
235
+ defaultActive={defaultActive}
229
236
hideTriggerText={hideTriggerText}
230
237
id={id}
231
238
items={locales}
0 commit comments