Skip to content

Commit 13b71f1

Browse files
Get rid of deprecation warning for rx.input (#47)
1 parent 46c8428 commit 13b71f1

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

chat/components/chat.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,16 @@ def action_bar() -> rx.Component:
6363
rx.chakra.form(
6464
rx.chakra.form_control(
6565
rx.hstack(
66-
rx.radix.text_field.root(
67-
rx.radix.text_field.input(
68-
placeholder="Type something...",
69-
id="question",
70-
width=["15em", "20em", "45em", "50em", "50em", "50em"],
71-
),
72-
rx.radix.text_field.slot(
66+
rx.input(
67+
rx.input.slot(
7368
rx.tooltip(
7469
rx.icon("info", size=18),
7570
content="Enter a question to get a response.",
7671
)
7772
),
73+
placeholder="Type something...",
74+
id="question",
75+
width=["15em", "20em", "45em", "50em", "50em", "50em"],
7876
),
7977
rx.button(
8078
rx.cond(

0 commit comments

Comments
 (0)