Skip to content

Commit 89458b4

Browse files
committed
add loading state to intro form
1 parent e75728f commit 89458b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

reflex_ui/blocks/intro_form.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
intro_form_error_message = ClientStateVar.create("intro_form_error_message", "")
1515
intro_form_open_cs = ClientStateVar.create("intro_form_open", False)
16+
is_submitting_intro_form_cs = ClientStateVar.create("is_submitting_intro_form", False)
1617

1718
PERSONAL_EMAIL_PROVIDERS = r"^(?!.*@(gmail|outlook|hotmail|yahoo|icloud|aol|protonmail|mail|yandex|zoho|live|msn|me|mac|googlemail)\.com$|.*@(yahoo|outlook|hotmail)\.co\.uk$|.*@yahoo\.ca$|.*@yahoo\.co\.in$|.*@proton\.me$).*$"
1819

@@ -331,6 +332,7 @@ def intro_form(
331332
"Submit",
332333
type="submit",
333334
class_name="w-full",
335+
loading=is_submitting_intro_form_cs.value,
334336
),
335337
class_name=ui.cn(
336338
"@container flex flex-col lg:gap-6 gap-2 p-6",

0 commit comments

Comments
 (0)