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
3939 *
4040 * **Example usage:**
4141 * ```kotlin
42+ * val emailTextValue = remember { mutableStateOf("") }
43+ *
44+ * val emailValidator = remember {
45+ * EmailValidator(stringProvider = DefaultAuthUIStringProvider(context))
46+ * }
47+ *
4248 * 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
4755 * )
4856 * ```
4957 *
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ import com.firebase.ui.auth.compose.ui.components.AuthProviderButton
2929 * ```kotlin
3030 * AuthMethodPicker(
3131 * providers = listOf(
32- * AuthProvider.Google(),
33- * AuthProvider.Email(),
32+ * AuthProvider.Google(),
33+ * AuthProvider.Email(),
3434 * ),
3535 * onProviderSelected = { provider -> /* ... */ }
3636 * )
You can’t perform that action at this time.
0 commit comments