File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
auth/src/main/java/com/firebase/ui/auth/compose/ui Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,19 @@ import com.firebase.ui.auth.compose.configuration.validators.PasswordValidator
39
39
*
40
40
* **Example usage:**
41
41
* ```kotlin
42
+ * val emailTextValue = remember { mutableStateOf("") }
43
+ *
44
+ * val emailValidator = remember {
45
+ * EmailValidator(stringProvider = DefaultAuthUIStringProvider(context))
46
+ * }
47
+ *
42
48
* AuthTextField(
43
- * value = email,
44
- * onValueChange = { email = it },
45
- * label = "Email",
46
- * validator = EmailValidator()
49
+ * value = emailTextValue,
50
+ * onValueChange = { emailTextValue.value = it },
51
+ * label = {
52
+ * Text("Email")
53
+ * },
54
+ * validator = emailValidator
47
55
* )
48
56
* ```
49
57
*
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ import com.firebase.ui.auth.compose.ui.components.AuthProviderButton
29
29
* ```kotlin
30
30
* AuthMethodPicker(
31
31
* providers = listOf(
32
- * AuthProvider.Google(),
33
- * AuthProvider.Email(),
32
+ * AuthProvider.Google(),
33
+ * AuthProvider.Email(),
34
34
* ),
35
35
* onProviderSelected = { provider -> /* ... */ }
36
36
* )
You can’t perform that action at this time.
0 commit comments