Skip to content

Commit 4427fb8

Browse files
committed
update demo form
1 parent 090bc87 commit 4427fb8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

reflex_ui/blocks/demo_form.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def input_field(
7979
"""
8080
return rx.el.div(
8181
rx.el.label(
82-
label,
82+
label + (" *" if required else ""),
8383
class_name="block text-sm font-medium text-secondary-12",
8484
),
8585
ui.input(
@@ -352,13 +352,13 @@ def get_component(cls, **props):
352352
"""
353353
return rx.el.form(
354354
rx.el.div(
355-
input_field("First name *", "John", "first_name", "text", True),
356-
input_field("Last name *", "Smith", "last_name", "text", True),
355+
input_field("First name", "John", "first_name", "text", True),
356+
input_field("Last name", "Smith", "last_name", "text", True),
357357
class_name="grid grid-cols-2 gap-4",
358358
),
359-
input_field("Email *", "[email protected]", "email", "email", True),
359+
input_field("Email", "[email protected]", "email", "email", True),
360360
rx.el.div(
361-
input_field("Job title *", "CTO", "job_title", "text", True),
361+
input_field("Job title", "CTO", "job_title", "text", True),
362362
input_field(
363363
"Company name *", "Pynecone, Inc.", "company_name", "text", True
364364
),
@@ -369,7 +369,7 @@ def get_component(cls, **props):
369369
"https://linkedin.com/in/your-profile",
370370
"linkedin_profile_url",
371371
"text",
372-
False,
372+
True,
373373
),
374374
input_field(
375375
"Phone number (optional)",
@@ -386,13 +386,13 @@ def get_component(cls, **props):
386386
),
387387
rx.el.div(
388388
select_field(
389-
"Number of employees? *",
389+
"Number of employees?",
390390
"number_of_employees",
391391
["1", "2-5", "6-10", "11-50", "51-100", "101-500", "500+"],
392392
"500+",
393393
),
394394
select_field(
395-
"How did you hear about us? *",
395+
"How did you hear about us?",
396396
"how_did_you_hear_about_us",
397397
[
398398
"Google Search",

0 commit comments

Comments
 (0)