Skip to content

Commit d41fa72

Browse files
carlosabadiaadhami3310
authored andcommitted
add str support for some html components props (#5378)
1 parent 6ca6108 commit d41fa72

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

pyi_hashes.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"reflex/components/el/element.pyi": "323cfb5d67d8ccb58ac36c7cc7641dc3",
3030
"reflex/components/el/elements/__init__.pyi": "baeddd04d4d3a82799420b2a6df368f6",
3131
"reflex/components/el/elements/base.pyi": "697cd6716e3b1127b35299435c3d4e69",
32-
"reflex/components/el/elements/forms.pyi": "21d7135b513bac72fd63b44c945932a5",
32+
"reflex/components/el/elements/forms.pyi": "14f2ac656d37c4a5343c77e89ad9107b",
3333
"reflex/components/el/elements/inline.pyi": "ab31eec758f1cff8a9d51bf0935b9fca",
3434
"reflex/components/el/elements/media.pyi": "c191a9e00223a97e26a0d6ab99a1919b",
3535
"reflex/components/el/elements/metadata.pyi": "eda94a3283bae6a9b61b4cb1e20c1dbd",
@@ -91,7 +91,7 @@
9191
"reflex/components/radix/themes/components/switch.pyi": "61729a28148bc17acd20e48c12f60a54",
9292
"reflex/components/radix/themes/components/table.pyi": "81c77cecf78ddb3e931c9a5f0f8eccde",
9393
"reflex/components/radix/themes/components/tabs.pyi": "6facf7ebd344f8995934a167af01a9e5",
94-
"reflex/components/radix/themes/components/text_area.pyi": "eef90fcc66990c44f3c0540862877cba",
94+
"reflex/components/radix/themes/components/text_area.pyi": "4d5c343f24c71d89f3cb96c63cf9fc3a",
9595
"reflex/components/radix/themes/components/text_field.pyi": "92552297cc747dd3aae6f382699e319d",
9696
"reflex/components/radix/themes/components/tooltip.pyi": "5e17b67e50410f1124d2150237eab7cf",
9797
"reflex/components/radix/themes/layout/__init__.pyi": "9a52c5b283c864be70b51a8fd6120392",

reflex/components/el/elements/forms.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ class BaseInput(BaseHTML):
384384
required: Var[bool]
385385

386386
# Specifies the visible width of a text control
387-
size: Var[int | float]
387+
size: Var[str | int | float]
388388

389389
# URL for image inputs
390390
src: Var[str]
@@ -504,22 +504,22 @@ class Meter(BaseHTML):
504504
form: Var[str]
505505

506506
# High limit of range (above this is considered high value)
507-
high: Var[int | float]
507+
high: Var[str | int | float]
508508

509509
# Low limit of range (below this is considered low value)
510-
low: Var[int | float]
510+
low: Var[str | int | float]
511511

512512
# Maximum value of the range
513-
max: Var[int | float]
513+
max: Var[str | int | float]
514514

515515
# Minimum value of the range
516-
min: Var[int | float]
516+
min: Var[str | int | float]
517517

518518
# Optimum value in the range
519-
optimum: Var[int | float]
519+
optimum: Var[str | int | float]
520520

521521
# Current value of the meter
522-
value: Var[int | float]
522+
value: Var[str | int | float]
523523

524524

525525
class Optgroup(BaseHTML):
@@ -666,7 +666,7 @@ class Textarea(BaseHTML):
666666
auto_height: Var[bool]
667667

668668
# Visible width of the text control, in average character widths
669-
cols: Var[int]
669+
cols: Var[str | int]
670670

671671
# The default value of the textarea when initially rendered
672672
default_value: Var[str]
@@ -684,10 +684,10 @@ class Textarea(BaseHTML):
684684
form: Var[str]
685685

686686
# Maximum number of characters allowed in the textarea
687-
max_length: Var[int]
687+
max_length: Var[str | int]
688688

689689
# Minimum number of characters required in the textarea
690-
min_length: Var[int]
690+
min_length: Var[str | int]
691691

692692
# Name of the textarea, used when submitting the form
693693
name: Var[str]
@@ -702,7 +702,7 @@ class Textarea(BaseHTML):
702702
required: Var[bool]
703703

704704
# Visible number of lines in the text control
705-
rows: Var[int]
705+
rows: Var[str | int]
706706

707707
# The controlled value of the textarea, read only unless used with on_change
708708
value: Var[str]

0 commit comments

Comments
 (0)