reflex 0.7.1a4__py3-none-any.whl → 0.7.2a2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of reflex might be problematic. Click here for more details.

Files changed (227) hide show
  1. reflex/.templates/jinja/web/utils/context.js.jinja2 +8 -8
  2. reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +3 -3
  3. reflex/.templates/web/utils/state.js +18 -18
  4. reflex/admin.py +1 -2
  5. reflex/app.py +46 -49
  6. reflex/app_mixins/lifespan.py +2 -2
  7. reflex/app_mixins/middleware.py +1 -2
  8. reflex/assets.py +1 -2
  9. reflex/base.py +2 -2
  10. reflex/compiler/compiler.py +51 -16
  11. reflex/compiler/utils.py +4 -13
  12. reflex/components/base/app_wrap.pyi +7 -7
  13. reflex/components/base/bare.py +3 -3
  14. reflex/components/base/body.pyi +7 -7
  15. reflex/components/base/document.py +1 -3
  16. reflex/components/base/document.pyi +32 -32
  17. reflex/components/base/error_boundary.py +2 -4
  18. reflex/components/base/error_boundary.pyi +11 -13
  19. reflex/components/base/fragment.pyi +7 -7
  20. reflex/components/base/head.pyi +13 -13
  21. reflex/components/base/link.pyi +22 -22
  22. reflex/components/base/meta.py +5 -7
  23. reflex/components/base/meta.pyi +40 -40
  24. reflex/components/base/script.pyi +11 -14
  25. reflex/components/base/strict_mode.pyi +7 -7
  26. reflex/components/component.py +188 -113
  27. reflex/components/core/auto_scroll.py +8 -1
  28. reflex/components/core/auto_scroll.pyi +183 -210
  29. reflex/components/core/banner.py +2 -4
  30. reflex/components/core/banner.pyi +390 -444
  31. reflex/components/core/breakpoints.py +5 -5
  32. reflex/components/core/client_side_routing.pyi +14 -14
  33. reflex/components/core/clipboard.py +4 -4
  34. reflex/components/core/clipboard.pyi +12 -14
  35. reflex/components/core/cond.py +17 -25
  36. reflex/components/core/debounce.py +3 -3
  37. reflex/components/core/debounce.pyi +14 -14
  38. reflex/components/core/foreach.py +7 -2
  39. reflex/components/core/html.py +1 -3
  40. reflex/components/core/html.pyi +184 -213
  41. reflex/components/core/match.py +15 -19
  42. reflex/components/core/sticky.pyi +930 -1078
  43. reflex/components/core/upload.py +4 -4
  44. reflex/components/core/upload.pyi +62 -62
  45. reflex/components/datadisplay/code.py +6 -6
  46. reflex/components/datadisplay/code.pyi +1159 -1165
  47. reflex/components/datadisplay/dataeditor.py +49 -49
  48. reflex/components/datadisplay/dataeditor.pyi +95 -123
  49. reflex/components/datadisplay/logo.py +1 -3
  50. reflex/components/datadisplay/shiki_code_block.py +8 -10
  51. reflex/components/datadisplay/shiki_code_block.pyi +1678 -1720
  52. reflex/components/el/element.pyi +7 -7
  53. reflex/components/el/elements/base.pyi +183 -210
  54. reflex/components/el/elements/forms.py +24 -24
  55. reflex/components/el/elements/forms.pyi +2572 -2934
  56. reflex/components/el/elements/inline.py +4 -4
  57. reflex/components/el/elements/inline.pyi +5191 -5953
  58. reflex/components/el/elements/media.py +47 -47
  59. reflex/components/el/elements/media.pyi +4802 -5500
  60. reflex/components/el/elements/metadata.py +1 -3
  61. reflex/components/el/elements/metadata.pyi +782 -896
  62. reflex/components/el/elements/other.pyi +1278 -1467
  63. reflex/components/el/elements/scripts.pyi +580 -667
  64. reflex/components/el/elements/sectioning.pyi +2761 -3166
  65. reflex/components/el/elements/tables.pyi +1840 -2119
  66. reflex/components/el/elements/typography.pyi +2772 -3179
  67. reflex/components/gridjs/datatable.py +7 -7
  68. reflex/components/gridjs/datatable.pyi +19 -19
  69. reflex/components/lucide/icon.pyi +21 -21
  70. reflex/components/markdown/markdown.py +2 -2
  71. reflex/components/markdown/markdown.pyi +9 -9
  72. reflex/components/moment/moment.py +11 -12
  73. reflex/components/moment/moment.pyi +44 -47
  74. reflex/components/next/base.pyi +7 -7
  75. reflex/components/next/image.py +3 -3
  76. reflex/components/next/image.pyi +19 -21
  77. reflex/components/next/link.pyi +9 -9
  78. reflex/components/next/video.py +1 -3
  79. reflex/components/next/video.pyi +9 -9
  80. reflex/components/plotly/plotly.py +22 -45
  81. reflex/components/plotly/plotly.pyi +164 -164
  82. reflex/components/radix/primitives/accordion.py +14 -14
  83. reflex/components/radix/primitives/accordion.pyi +439 -487
  84. reflex/components/radix/primitives/base.py +1 -3
  85. reflex/components/radix/primitives/base.pyi +15 -15
  86. reflex/components/radix/primitives/drawer.py +3 -3
  87. reflex/components/radix/primitives/drawer.pyi +110 -116
  88. reflex/components/radix/primitives/form.py +1 -1
  89. reflex/components/radix/primitives/form.pyi +668 -752
  90. reflex/components/radix/primitives/progress.py +6 -6
  91. reflex/components/radix/primitives/progress.pyi +225 -243
  92. reflex/components/radix/primitives/slider.py +6 -6
  93. reflex/components/radix/primitives/slider.pyi +52 -55
  94. reflex/components/radix/themes/base.py +3 -6
  95. reflex/components/radix/themes/base.pyi +197 -303
  96. reflex/components/radix/themes/color_mode.py +5 -5
  97. reflex/components/radix/themes/color_mode.pyi +366 -436
  98. reflex/components/radix/themes/components/alert_dialog.pyi +229 -262
  99. reflex/components/radix/themes/components/aspect_ratio.py +1 -3
  100. reflex/components/radix/themes/components/aspect_ratio.pyi +8 -8
  101. reflex/components/radix/themes/components/avatar.pyi +79 -94
  102. reflex/components/radix/themes/components/badge.pyi +252 -295
  103. reflex/components/radix/themes/components/button.pyi +269 -314
  104. reflex/components/radix/themes/components/callout.py +2 -2
  105. reflex/components/radix/themes/components/callout.pyi +1116 -1290
  106. reflex/components/radix/themes/components/card.pyi +194 -229
  107. reflex/components/radix/themes/components/checkbox.pyi +243 -278
  108. reflex/components/radix/themes/components/checkbox_cards.py +3 -7
  109. reflex/components/radix/themes/components/checkbox_cards.pyi +101 -135
  110. reflex/components/radix/themes/components/checkbox_group.py +2 -2
  111. reflex/components/radix/themes/components/checkbox_group.pyi +83 -96
  112. reflex/components/radix/themes/components/context_menu.py +18 -15
  113. reflex/components/radix/themes/components/context_menu.pyi +408 -458
  114. reflex/components/radix/themes/components/data_list.pyi +122 -147
  115. reflex/components/radix/themes/components/dialog.pyi +231 -264
  116. reflex/components/radix/themes/components/dropdown_menu.py +16 -13
  117. reflex/components/radix/themes/components/dropdown_menu.pyi +223 -246
  118. reflex/components/radix/themes/components/hover_card.py +2 -2
  119. reflex/components/radix/themes/components/hover_card.pyi +237 -282
  120. reflex/components/radix/themes/components/icon_button.pyi +269 -314
  121. reflex/components/radix/themes/components/inset.py +8 -8
  122. reflex/components/radix/themes/components/inset.pyi +232 -292
  123. reflex/components/radix/themes/components/popover.py +2 -2
  124. reflex/components/radix/themes/components/popover.pyi +229 -271
  125. reflex/components/radix/themes/components/progress.pyi +80 -96
  126. reflex/components/radix/themes/components/radio.pyi +73 -86
  127. reflex/components/radix/themes/components/radio_cards.py +4 -8
  128. reflex/components/radix/themes/components/radio_cards.pyi +117 -154
  129. reflex/components/radix/themes/components/radio_group.py +3 -3
  130. reflex/components/radix/themes/components/radio_group.pyi +250 -291
  131. reflex/components/radix/themes/components/scroll_area.pyi +14 -20
  132. reflex/components/radix/themes/components/segmented_control.py +6 -6
  133. reflex/components/radix/themes/components/segmented_control.pyi +89 -108
  134. reflex/components/radix/themes/components/select.py +7 -7
  135. reflex/components/radix/themes/components/select.pyi +376 -444
  136. reflex/components/radix/themes/components/separator.pyi +79 -93
  137. reflex/components/radix/themes/components/skeleton.pyi +32 -26
  138. reflex/components/radix/themes/components/slider.py +8 -8
  139. reflex/components/radix/themes/components/slider.pyi +99 -122
  140. reflex/components/radix/themes/components/spinner.pyi +12 -19
  141. reflex/components/radix/themes/components/switch.pyi +84 -99
  142. reflex/components/radix/themes/components/table.py +9 -9
  143. reflex/components/radix/themes/components/table.pyi +1440 -1794
  144. reflex/components/radix/themes/components/tabs.py +4 -4
  145. reflex/components/radix/themes/components/tabs.pyi +120 -132
  146. reflex/components/radix/themes/components/text_area.pyi +281 -331
  147. reflex/components/radix/themes/components/text_field.py +2 -2
  148. reflex/components/radix/themes/components/text_field.pyi +639 -734
  149. reflex/components/radix/themes/components/tooltip.py +6 -6
  150. reflex/components/radix/themes/components/tooltip.pyi +34 -43
  151. reflex/components/radix/themes/layout/base.pyi +85 -182
  152. reflex/components/radix/themes/layout/box.pyi +183 -210
  153. reflex/components/radix/themes/layout/center.pyi +225 -286
  154. reflex/components/radix/themes/layout/container.pyi +191 -224
  155. reflex/components/radix/themes/layout/flex.py +2 -2
  156. reflex/components/radix/themes/layout/flex.pyi +225 -286
  157. reflex/components/radix/themes/layout/grid.py +2 -2
  158. reflex/components/radix/themes/layout/grid.pyi +245 -315
  159. reflex/components/radix/themes/layout/list.py +2 -2
  160. reflex/components/radix/themes/layout/list.pyi +712 -815
  161. reflex/components/radix/themes/layout/section.pyi +187 -221
  162. reflex/components/radix/themes/layout/spacer.pyi +225 -286
  163. reflex/components/radix/themes/layout/stack.pyi +625 -768
  164. reflex/components/radix/themes/typography/blockquote.pyi +257 -299
  165. reflex/components/radix/themes/typography/code.pyi +259 -304
  166. reflex/components/radix/themes/typography/heading.pyi +272 -324
  167. reflex/components/radix/themes/typography/link.pyi +302 -358
  168. reflex/components/radix/themes/typography/text.pyi +1669 -1945
  169. reflex/components/react_player/audio.pyi +20 -22
  170. reflex/components/react_player/react_player.pyi +19 -19
  171. reflex/components/react_player/video.pyi +20 -22
  172. reflex/components/recharts/cartesian.py +100 -97
  173. reflex/components/recharts/cartesian.pyi +891 -1007
  174. reflex/components/recharts/charts.py +42 -42
  175. reflex/components/recharts/charts.pyi +212 -249
  176. reflex/components/recharts/general.py +22 -21
  177. reflex/components/recharts/general.pyi +198 -223
  178. reflex/components/recharts/polar.py +42 -45
  179. reflex/components/recharts/polar.pyi +254 -288
  180. reflex/components/recharts/recharts.pyi +13 -13
  181. reflex/components/sonner/toast.py +20 -20
  182. reflex/components/sonner/toast.pyi +58 -61
  183. reflex/components/suneditor/editor.py +9 -9
  184. reflex/components/suneditor/editor.pyi +78 -83
  185. reflex/components/tags/cond_tag.py +2 -2
  186. reflex/components/tags/iter_tag.py +10 -14
  187. reflex/components/tags/match_tag.py +2 -2
  188. reflex/components/tags/tag.py +10 -10
  189. reflex/config.py +36 -35
  190. reflex/constants/__init__.py +56 -53
  191. reflex/custom_components/custom_components.py +6 -7
  192. reflex/event.py +38 -42
  193. reflex/experimental/client_state.py +2 -4
  194. reflex/experimental/layout.py +2 -2
  195. reflex/experimental/layout.pyi +579 -663
  196. reflex/istate/data.py +4 -5
  197. reflex/middleware/hydrate_middleware.py +2 -2
  198. reflex/middleware/middleware.py +2 -2
  199. reflex/model.py +3 -5
  200. reflex/page.py +2 -2
  201. reflex/reflex.py +9 -10
  202. reflex/state.py +77 -49
  203. reflex/style.py +9 -3
  204. reflex/testing.py +21 -24
  205. reflex/utils/console.py +1 -1
  206. reflex/utils/decorator.py +26 -1
  207. reflex/utils/exec.py +6 -11
  208. reflex/utils/export.py +2 -3
  209. reflex/utils/format.py +4 -4
  210. reflex/utils/imports.py +12 -12
  211. reflex/utils/prerequisites.py +35 -84
  212. reflex/utils/processes.py +5 -5
  213. reflex/utils/pyi_generator.py +33 -22
  214. reflex/utils/serializers.py +60 -15
  215. reflex/utils/types.py +237 -56
  216. reflex/vars/base.py +122 -72
  217. reflex/vars/datetime.py +2 -2
  218. reflex/vars/function.py +52 -55
  219. reflex/vars/number.py +59 -5
  220. reflex/vars/object.py +57 -26
  221. reflex/vars/sequence.py +983 -958
  222. {reflex-0.7.1a4.dist-info → reflex-0.7.2a2.dist-info}/METADATA +3 -6
  223. reflex-0.7.2a2.dist-info/RECORD +405 -0
  224. {reflex-0.7.1a4.dist-info → reflex-0.7.2a2.dist-info}/WHEEL +1 -1
  225. reflex-0.7.1a4.dist-info/RECORD +0 -405
  226. {reflex-0.7.1a4.dist-info → reflex-0.7.2a2.dist-info}/LICENSE +0 -0
  227. {reflex-0.7.1a4.dist-info → reflex-0.7.2a2.dist-info}/entry_points.txt +0 -0
@@ -3,7 +3,7 @@
3
3
  # ------------------- DO NOT EDIT ----------------------
4
4
  # This file was generated by `reflex/utils/pyi_generator.py`!
5
5
  # ------------------------------------------------------
6
- from typing import Any, Dict, List, Literal, Optional, Union, overload
6
+ from typing import Any, Literal, Optional, Sequence, overload
7
7
 
8
8
  from reflex.components.component import ComponentNamespace
9
9
  from reflex.components.core.breakpoints import Breakpoints
@@ -28,14 +28,14 @@ class ContextMenuRoot(RadixThemesComponent):
28
28
  def create( # type: ignore
29
29
  cls,
30
30
  *children,
31
- modal: Optional[Union[Var[bool], bool]] = None,
32
- dir: Optional[Union[Literal["ltr", "rtl"], Var[Literal["ltr", "rtl"]]]] = None,
33
- style: Optional[Style] = None,
34
- key: Optional[Any] = None,
35
- id: Optional[Any] = None,
36
- class_name: Optional[Any] = None,
37
- autofocus: Optional[bool] = None,
38
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
31
+ modal: Var[bool] | bool | None = None,
32
+ dir: Literal["ltr", "rtl"] | Var[Literal["ltr", "rtl"]] | None = None,
33
+ style: Style | None = None,
34
+ key: Any | None = None,
35
+ id: Any | None = None,
36
+ class_name: Any | None = None,
37
+ autofocus: bool | None = None,
38
+ custom_attrs: dict[str, Var | Any] | None = None,
39
39
  on_blur: Optional[EventType[()]] = None,
40
40
  on_click: Optional[EventType[()]] = None,
41
41
  on_context_menu: Optional[EventType[()]] = None,
@@ -49,7 +49,7 @@ class ContextMenuRoot(RadixThemesComponent):
49
49
  on_mouse_out: Optional[EventType[()]] = None,
50
50
  on_mouse_over: Optional[EventType[()]] = None,
51
51
  on_mouse_up: Optional[EventType[()]] = None,
52
- on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
52
+ on_open_change: Optional[EventType[()] | EventType[bool]] = None,
53
53
  on_scroll: Optional[EventType[()]] = None,
54
54
  on_unmount: Optional[EventType[()]] = None,
55
55
  **props,
@@ -83,13 +83,13 @@ class ContextMenuTrigger(RadixThemesComponent):
83
83
  def create( # type: ignore
84
84
  cls,
85
85
  *children,
86
- disabled: Optional[Union[Var[bool], bool]] = None,
87
- style: Optional[Style] = None,
88
- key: Optional[Any] = None,
89
- id: Optional[Any] = None,
90
- class_name: Optional[Any] = None,
91
- autofocus: Optional[bool] = None,
92
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
86
+ disabled: Var[bool] | bool | None = None,
87
+ style: Style | None = None,
88
+ key: Any | None = None,
89
+ id: Any | None = None,
90
+ class_name: Any | None = None,
91
+ autofocus: bool | None = None,
92
+ custom_attrs: dict[str, Var | Any] | None = None,
93
93
  on_blur: Optional[EventType[()]] = None,
94
94
  on_click: Optional[EventType[()]] = None,
95
95
  on_context_menu: Optional[EventType[()]] = None,
@@ -134,115 +134,98 @@ class ContextMenuContent(RadixThemesComponent):
134
134
  def create( # type: ignore
135
135
  cls,
136
136
  *children,
137
- size: Optional[
138
- Union[
139
- Breakpoints[str, Literal["1", "2"]],
140
- Literal["1", "2"],
141
- Var[Union[Breakpoints[str, Literal["1", "2"]], Literal["1", "2"]]],
137
+ size: Breakpoints[str, Literal["1", "2"]]
138
+ | Literal["1", "2"]
139
+ | Var[Breakpoints[str, Literal["1", "2"]] | Literal["1", "2"]]
140
+ | None = None,
141
+ variant: Literal["soft", "solid"] | Var[Literal["soft", "solid"]] | None = None,
142
+ color_scheme: Literal[
143
+ "amber",
144
+ "blue",
145
+ "bronze",
146
+ "brown",
147
+ "crimson",
148
+ "cyan",
149
+ "gold",
150
+ "grass",
151
+ "gray",
152
+ "green",
153
+ "indigo",
154
+ "iris",
155
+ "jade",
156
+ "lime",
157
+ "mint",
158
+ "orange",
159
+ "pink",
160
+ "plum",
161
+ "purple",
162
+ "red",
163
+ "ruby",
164
+ "sky",
165
+ "teal",
166
+ "tomato",
167
+ "violet",
168
+ "yellow",
169
+ ]
170
+ | Var[
171
+ Literal[
172
+ "amber",
173
+ "blue",
174
+ "bronze",
175
+ "brown",
176
+ "crimson",
177
+ "cyan",
178
+ "gold",
179
+ "grass",
180
+ "gray",
181
+ "green",
182
+ "indigo",
183
+ "iris",
184
+ "jade",
185
+ "lime",
186
+ "mint",
187
+ "orange",
188
+ "pink",
189
+ "plum",
190
+ "purple",
191
+ "red",
192
+ "ruby",
193
+ "sky",
194
+ "teal",
195
+ "tomato",
196
+ "violet",
197
+ "yellow",
142
198
  ]
143
- ] = None,
144
- variant: Optional[
145
- Union[Literal["soft", "solid"], Var[Literal["soft", "solid"]]]
146
- ] = None,
147
- color_scheme: Optional[
148
- Union[
149
- Literal[
150
- "amber",
151
- "blue",
152
- "bronze",
153
- "brown",
154
- "crimson",
155
- "cyan",
156
- "gold",
157
- "grass",
158
- "gray",
159
- "green",
160
- "indigo",
161
- "iris",
162
- "jade",
163
- "lime",
164
- "mint",
165
- "orange",
166
- "pink",
167
- "plum",
168
- "purple",
169
- "red",
170
- "ruby",
171
- "sky",
172
- "teal",
173
- "tomato",
174
- "violet",
175
- "yellow",
176
- ],
177
- Var[
178
- Literal[
179
- "amber",
180
- "blue",
181
- "bronze",
182
- "brown",
183
- "crimson",
184
- "cyan",
185
- "gold",
186
- "grass",
187
- "gray",
188
- "green",
189
- "indigo",
190
- "iris",
191
- "jade",
192
- "lime",
193
- "mint",
194
- "orange",
195
- "pink",
196
- "plum",
197
- "purple",
198
- "red",
199
- "ruby",
200
- "sky",
201
- "teal",
202
- "tomato",
203
- "violet",
204
- "yellow",
205
- ]
206
- ],
207
- ]
208
- ] = None,
209
- high_contrast: Optional[Union[Var[bool], bool]] = None,
210
- as_child: Optional[Union[Var[bool], bool]] = None,
211
- loop: Optional[Union[Var[bool], bool]] = None,
212
- force_mount: Optional[Union[Var[bool], bool]] = None,
213
- side: Optional[
214
- Union[
215
- Literal["bottom", "left", "right", "top"],
216
- Var[Literal["bottom", "left", "right", "top"]],
217
- ]
218
- ] = None,
219
- side_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
220
- align: Optional[
221
- Union[
222
- Literal["center", "end", "start"],
223
- Var[Literal["center", "end", "start"]],
224
- ]
225
- ] = None,
226
- align_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
227
- avoid_collisions: Optional[Union[Var[bool], bool]] = None,
228
- collision_padding: Optional[
229
- Union[
230
- Dict[str, Union[float, int]],
231
- Var[Union[Dict[str, Union[float, int]], float, int]],
232
- float,
233
- int,
234
- ]
235
- ] = None,
236
- sticky: Optional[
237
- Union[Literal["always", "partial"], Var[Literal["always", "partial"]]]
238
- ] = None,
239
- hide_when_detached: Optional[Union[Var[bool], bool]] = None,
240
- style: Optional[Style] = None,
241
- key: Optional[Any] = None,
242
- id: Optional[Any] = None,
243
- class_name: Optional[Any] = None,
244
- autofocus: Optional[bool] = None,
245
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
199
+ ]
200
+ | None = None,
201
+ high_contrast: Var[bool] | bool | None = None,
202
+ as_child: Var[bool] | bool | None = None,
203
+ loop: Var[bool] | bool | None = None,
204
+ force_mount: Var[bool] | bool | None = None,
205
+ side: Literal["bottom", "left", "right", "top"]
206
+ | Var[Literal["bottom", "left", "right", "top"]]
207
+ | None = None,
208
+ side_offset: Var[float | int] | float | int | None = None,
209
+ align: Literal["center", "end", "start"]
210
+ | Var[Literal["center", "end", "start"]]
211
+ | None = None,
212
+ align_offset: Var[float | int] | float | int | None = None,
213
+ avoid_collisions: Var[bool] | bool | None = None,
214
+ collision_padding: Var[dict[str, float | int] | float | int]
215
+ | dict[str, float | int]
216
+ | float
217
+ | int
218
+ | None = None,
219
+ sticky: Literal["always", "partial"]
220
+ | Var[Literal["always", "partial"]]
221
+ | None = None,
222
+ hide_when_detached: Var[bool] | bool | None = None,
223
+ style: Style | None = None,
224
+ key: Any | None = None,
225
+ id: Any | None = None,
226
+ class_name: Any | None = None,
227
+ autofocus: bool | None = None,
228
+ custom_attrs: dict[str, Var | Any] | None = None,
246
229
  on_blur: Optional[EventType[()]] = None,
247
230
  on_click: Optional[EventType[()]] = None,
248
231
  on_close_auto_focus: Optional[EventType[()]] = None,
@@ -311,14 +294,14 @@ class ContextMenuSub(RadixThemesComponent):
311
294
  def create( # type: ignore
312
295
  cls,
313
296
  *children,
314
- open: Optional[Union[Var[bool], bool]] = None,
315
- default_open: Optional[Union[Var[bool], bool]] = None,
316
- style: Optional[Style] = None,
317
- key: Optional[Any] = None,
318
- id: Optional[Any] = None,
319
- class_name: Optional[Any] = None,
320
- autofocus: Optional[bool] = None,
321
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
297
+ open: Var[bool] | bool | None = None,
298
+ default_open: Var[bool] | bool | None = None,
299
+ style: Style | None = None,
300
+ key: Any | None = None,
301
+ id: Any | None = None,
302
+ class_name: Any | None = None,
303
+ autofocus: bool | None = None,
304
+ custom_attrs: dict[str, Var | Any] | None = None,
322
305
  on_blur: Optional[EventType[()]] = None,
323
306
  on_click: Optional[EventType[()]] = None,
324
307
  on_context_menu: Optional[EventType[()]] = None,
@@ -332,7 +315,7 @@ class ContextMenuSub(RadixThemesComponent):
332
315
  on_mouse_out: Optional[EventType[()]] = None,
333
316
  on_mouse_over: Optional[EventType[()]] = None,
334
317
  on_mouse_up: Optional[EventType[()]] = None,
335
- on_open_change: Optional[Union[EventType[()], EventType[bool]]] = None,
318
+ on_open_change: Optional[EventType[()] | EventType[bool]] = None,
336
319
  on_scroll: Optional[EventType[()]] = None,
337
320
  on_unmount: Optional[EventType[()]] = None,
338
321
  **props,
@@ -366,15 +349,15 @@ class ContextMenuSubTrigger(RadixThemesComponent):
366
349
  def create( # type: ignore
367
350
  cls,
368
351
  *children,
369
- as_child: Optional[Union[Var[bool], bool]] = None,
370
- disabled: Optional[Union[Var[bool], bool]] = None,
371
- text_value: Optional[Union[Var[str], str]] = None,
372
- style: Optional[Style] = None,
373
- key: Optional[Any] = None,
374
- id: Optional[Any] = None,
375
- class_name: Optional[Any] = None,
376
- autofocus: Optional[bool] = None,
377
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
352
+ as_child: Var[bool] | bool | None = None,
353
+ disabled: Var[bool] | bool | None = None,
354
+ text_value: Var[str] | str | None = None,
355
+ style: Style | None = None,
356
+ key: Any | None = None,
357
+ id: Any | None = None,
358
+ class_name: Any | None = None,
359
+ autofocus: bool | None = None,
360
+ custom_attrs: dict[str, Var | Any] | None = None,
378
361
  on_blur: Optional[EventType[()]] = None,
379
362
  on_click: Optional[EventType[()]] = None,
380
363
  on_context_menu: Optional[EventType[()]] = None,
@@ -421,30 +404,27 @@ class ContextMenuSubContent(RadixThemesComponent):
421
404
  def create( # type: ignore
422
405
  cls,
423
406
  *children,
424
- as_child: Optional[Union[Var[bool], bool]] = None,
425
- loop: Optional[Union[Var[bool], bool]] = None,
426
- force_mount: Optional[Union[Var[bool], bool]] = None,
427
- side_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
428
- align_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
429
- avoid_collisions: Optional[Union[Var[bool], bool]] = None,
430
- collision_padding: Optional[
431
- Union[
432
- Dict[str, Union[float, int]],
433
- Var[Union[Dict[str, Union[float, int]], float, int]],
434
- float,
435
- int,
436
- ]
437
- ] = None,
438
- sticky: Optional[
439
- Union[Literal["always", "partial"], Var[Literal["always", "partial"]]]
440
- ] = None,
441
- hide_when_detached: Optional[Union[Var[bool], bool]] = None,
442
- style: Optional[Style] = None,
443
- key: Optional[Any] = None,
444
- id: Optional[Any] = None,
445
- class_name: Optional[Any] = None,
446
- autofocus: Optional[bool] = None,
447
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
407
+ as_child: Var[bool] | bool | None = None,
408
+ loop: Var[bool] | bool | None = None,
409
+ force_mount: Var[bool] | bool | None = None,
410
+ side_offset: Var[float | int] | float | int | None = None,
411
+ align_offset: Var[float | int] | float | int | None = None,
412
+ avoid_collisions: Var[bool] | bool | None = None,
413
+ collision_padding: Var[dict[str, float | int] | float | int]
414
+ | dict[str, float | int]
415
+ | float
416
+ | int
417
+ | None = None,
418
+ sticky: Literal["always", "partial"]
419
+ | Var[Literal["always", "partial"]]
420
+ | None = None,
421
+ hide_when_detached: Var[bool] | bool | None = None,
422
+ style: Style | None = None,
423
+ key: Any | None = None,
424
+ id: Any | None = None,
425
+ class_name: Any | None = None,
426
+ autofocus: bool | None = None,
427
+ custom_attrs: dict[str, Var | Any] | None = None,
448
428
  on_blur: Optional[EventType[()]] = None,
449
429
  on_click: Optional[EventType[()]] = None,
450
430
  on_context_menu: Optional[EventType[()]] = None,
@@ -505,78 +485,75 @@ class ContextMenuItem(RadixThemesComponent):
505
485
  def create( # type: ignore
506
486
  cls,
507
487
  *children,
508
- color_scheme: Optional[
509
- Union[
510
- Literal[
511
- "amber",
512
- "blue",
513
- "bronze",
514
- "brown",
515
- "crimson",
516
- "cyan",
517
- "gold",
518
- "grass",
519
- "gray",
520
- "green",
521
- "indigo",
522
- "iris",
523
- "jade",
524
- "lime",
525
- "mint",
526
- "orange",
527
- "pink",
528
- "plum",
529
- "purple",
530
- "red",
531
- "ruby",
532
- "sky",
533
- "teal",
534
- "tomato",
535
- "violet",
536
- "yellow",
537
- ],
538
- Var[
539
- Literal[
540
- "amber",
541
- "blue",
542
- "bronze",
543
- "brown",
544
- "crimson",
545
- "cyan",
546
- "gold",
547
- "grass",
548
- "gray",
549
- "green",
550
- "indigo",
551
- "iris",
552
- "jade",
553
- "lime",
554
- "mint",
555
- "orange",
556
- "pink",
557
- "plum",
558
- "purple",
559
- "red",
560
- "ruby",
561
- "sky",
562
- "teal",
563
- "tomato",
564
- "violet",
565
- "yellow",
566
- ]
567
- ],
488
+ color_scheme: Literal[
489
+ "amber",
490
+ "blue",
491
+ "bronze",
492
+ "brown",
493
+ "crimson",
494
+ "cyan",
495
+ "gold",
496
+ "grass",
497
+ "gray",
498
+ "green",
499
+ "indigo",
500
+ "iris",
501
+ "jade",
502
+ "lime",
503
+ "mint",
504
+ "orange",
505
+ "pink",
506
+ "plum",
507
+ "purple",
508
+ "red",
509
+ "ruby",
510
+ "sky",
511
+ "teal",
512
+ "tomato",
513
+ "violet",
514
+ "yellow",
515
+ ]
516
+ | Var[
517
+ Literal[
518
+ "amber",
519
+ "blue",
520
+ "bronze",
521
+ "brown",
522
+ "crimson",
523
+ "cyan",
524
+ "gold",
525
+ "grass",
526
+ "gray",
527
+ "green",
528
+ "indigo",
529
+ "iris",
530
+ "jade",
531
+ "lime",
532
+ "mint",
533
+ "orange",
534
+ "pink",
535
+ "plum",
536
+ "purple",
537
+ "red",
538
+ "ruby",
539
+ "sky",
540
+ "teal",
541
+ "tomato",
542
+ "violet",
543
+ "yellow",
568
544
  ]
569
- ] = None,
570
- shortcut: Optional[Union[Var[str], str]] = None,
571
- as_child: Optional[Union[Var[bool], bool]] = None,
572
- disabled: Optional[Union[Var[bool], bool]] = None,
573
- text_value: Optional[Union[Var[str], str]] = None,
574
- style: Optional[Style] = None,
575
- key: Optional[Any] = None,
576
- id: Optional[Any] = None,
577
- class_name: Optional[Any] = None,
578
- autofocus: Optional[bool] = None,
579
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
545
+ ]
546
+ | None = None,
547
+ shortcut: Var[str] | str | None = None,
548
+ as_child: Var[bool] | bool | None = None,
549
+ disabled: Var[bool] | bool | None = None,
550
+ text_value: Var[str] | str | None = None,
551
+ style: Style | None = None,
552
+ key: Any | None = None,
553
+ id: Any | None = None,
554
+ class_name: Any | None = None,
555
+ autofocus: bool | None = None,
556
+ custom_attrs: dict[str, Var | Any] | None = None,
580
557
  on_blur: Optional[EventType[()]] = None,
581
558
  on_click: Optional[EventType[()]] = None,
582
559
  on_context_menu: Optional[EventType[()]] = None,
@@ -627,12 +604,12 @@ class ContextMenuSeparator(RadixThemesComponent):
627
604
  def create( # type: ignore
628
605
  cls,
629
606
  *children,
630
- style: Optional[Style] = None,
631
- key: Optional[Any] = None,
632
- id: Optional[Any] = None,
633
- class_name: Optional[Any] = None,
634
- autofocus: Optional[bool] = None,
635
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
607
+ style: Style | None = None,
608
+ key: Any | None = None,
609
+ id: Any | None = None,
610
+ class_name: Any | None = None,
611
+ autofocus: bool | None = None,
612
+ custom_attrs: dict[str, Var | Any] | None = None,
636
613
  on_blur: Optional[EventType[()]] = None,
637
614
  on_click: Optional[EventType[()]] = None,
638
615
  on_context_menu: Optional[EventType[()]] = None,
@@ -676,102 +653,89 @@ class ContextMenuCheckbox(Checkbox):
676
653
  def create( # type: ignore
677
654
  cls,
678
655
  *children,
679
- shortcut: Optional[Union[Var[str], str]] = None,
680
- as_child: Optional[Union[Var[bool], bool]] = None,
681
- size: Optional[
682
- Union[
683
- Breakpoints[str, Literal["1", "2", "3"]],
684
- Literal["1", "2", "3"],
685
- Var[
686
- Union[
687
- Breakpoints[str, Literal["1", "2", "3"]], Literal["1", "2", "3"]
688
- ]
689
- ],
656
+ shortcut: Var[str] | str | None = None,
657
+ as_child: Var[bool] | bool | None = None,
658
+ size: Breakpoints[str, Literal["1", "2", "3"]]
659
+ | Literal["1", "2", "3"]
660
+ | Var[Breakpoints[str, Literal["1", "2", "3"]] | Literal["1", "2", "3"]]
661
+ | None = None,
662
+ variant: Literal["classic", "soft", "surface"]
663
+ | Var[Literal["classic", "soft", "surface"]]
664
+ | None = None,
665
+ color_scheme: Literal[
666
+ "amber",
667
+ "blue",
668
+ "bronze",
669
+ "brown",
670
+ "crimson",
671
+ "cyan",
672
+ "gold",
673
+ "grass",
674
+ "gray",
675
+ "green",
676
+ "indigo",
677
+ "iris",
678
+ "jade",
679
+ "lime",
680
+ "mint",
681
+ "orange",
682
+ "pink",
683
+ "plum",
684
+ "purple",
685
+ "red",
686
+ "ruby",
687
+ "sky",
688
+ "teal",
689
+ "tomato",
690
+ "violet",
691
+ "yellow",
692
+ ]
693
+ | Var[
694
+ Literal[
695
+ "amber",
696
+ "blue",
697
+ "bronze",
698
+ "brown",
699
+ "crimson",
700
+ "cyan",
701
+ "gold",
702
+ "grass",
703
+ "gray",
704
+ "green",
705
+ "indigo",
706
+ "iris",
707
+ "jade",
708
+ "lime",
709
+ "mint",
710
+ "orange",
711
+ "pink",
712
+ "plum",
713
+ "purple",
714
+ "red",
715
+ "ruby",
716
+ "sky",
717
+ "teal",
718
+ "tomato",
719
+ "violet",
720
+ "yellow",
690
721
  ]
691
- ] = None,
692
- variant: Optional[
693
- Union[
694
- Literal["classic", "soft", "surface"],
695
- Var[Literal["classic", "soft", "surface"]],
696
- ]
697
- ] = None,
698
- color_scheme: Optional[
699
- Union[
700
- Literal[
701
- "amber",
702
- "blue",
703
- "bronze",
704
- "brown",
705
- "crimson",
706
- "cyan",
707
- "gold",
708
- "grass",
709
- "gray",
710
- "green",
711
- "indigo",
712
- "iris",
713
- "jade",
714
- "lime",
715
- "mint",
716
- "orange",
717
- "pink",
718
- "plum",
719
- "purple",
720
- "red",
721
- "ruby",
722
- "sky",
723
- "teal",
724
- "tomato",
725
- "violet",
726
- "yellow",
727
- ],
728
- Var[
729
- Literal[
730
- "amber",
731
- "blue",
732
- "bronze",
733
- "brown",
734
- "crimson",
735
- "cyan",
736
- "gold",
737
- "grass",
738
- "gray",
739
- "green",
740
- "indigo",
741
- "iris",
742
- "jade",
743
- "lime",
744
- "mint",
745
- "orange",
746
- "pink",
747
- "plum",
748
- "purple",
749
- "red",
750
- "ruby",
751
- "sky",
752
- "teal",
753
- "tomato",
754
- "violet",
755
- "yellow",
756
- ]
757
- ],
758
- ]
759
- ] = None,
760
- high_contrast: Optional[Union[Var[bool], bool]] = None,
761
- default_checked: Optional[Union[Var[bool], bool]] = None,
762
- checked: Optional[Union[Var[bool], bool]] = None,
763
- disabled: Optional[Union[Var[bool], bool]] = None,
764
- required: Optional[Union[Var[bool], bool]] = None,
765
- name: Optional[Union[Var[str], str]] = None,
766
- value: Optional[Union[Var[str], str]] = None,
767
- style: Optional[Style] = None,
768
- key: Optional[Any] = None,
769
- id: Optional[Any] = None,
770
- class_name: Optional[Any] = None,
771
- autofocus: Optional[bool] = None,
772
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
722
+ ]
723
+ | None = None,
724
+ high_contrast: Var[bool] | bool | None = None,
725
+ default_checked: Var[bool] | bool | None = None,
726
+ checked: Var[bool] | bool | None = None,
727
+ disabled: Var[bool] | bool | None = None,
728
+ required: Var[bool] | bool | None = None,
729
+ name: Var[str] | str | None = None,
730
+ value: Var[str] | str | None = None,
731
+ style: Style | None = None,
732
+ key: Any | None = None,
733
+ id: Any | None = None,
734
+ class_name: Any | None = None,
735
+ autofocus: bool | None = None,
736
+ custom_attrs: dict[str, Var | Any] | None = None,
773
737
  on_blur: Optional[EventType[()]] = None,
774
- on_change: Optional[Union[EventType[()], EventType[bool]]] = None,
738
+ on_change: Optional[EventType[()] | EventType[bool]] = None,
775
739
  on_click: Optional[EventType[()]] = None,
776
740
  on_context_menu: Optional[EventType[()]] = None,
777
741
  on_double_click: Optional[EventType[()]] = None,
@@ -827,13 +791,13 @@ class ContextMenuLabel(RadixThemesComponent):
827
791
  def create( # type: ignore
828
792
  cls,
829
793
  *children,
830
- as_child: Optional[Union[Var[bool], bool]] = None,
831
- style: Optional[Style] = None,
832
- key: Optional[Any] = None,
833
- id: Optional[Any] = None,
834
- class_name: Optional[Any] = None,
835
- autofocus: Optional[bool] = None,
836
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
794
+ as_child: Var[bool] | bool | None = None,
795
+ style: Style | None = None,
796
+ key: Any | None = None,
797
+ id: Any | None = None,
798
+ class_name: Any | None = None,
799
+ autofocus: bool | None = None,
800
+ custom_attrs: dict[str, Var | Any] | None = None,
837
801
  on_blur: Optional[EventType[()]] = None,
838
802
  on_click: Optional[EventType[()]] = None,
839
803
  on_context_menu: Optional[EventType[()]] = None,
@@ -878,13 +842,13 @@ class ContextMenuGroup(RadixThemesComponent):
878
842
  def create( # type: ignore
879
843
  cls,
880
844
  *children,
881
- as_child: Optional[Union[Var[bool], bool]] = None,
882
- style: Optional[Style] = None,
883
- key: Optional[Any] = None,
884
- id: Optional[Any] = None,
885
- class_name: Optional[Any] = None,
886
- autofocus: Optional[bool] = None,
887
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
845
+ as_child: Var[bool] | bool | None = None,
846
+ style: Style | None = None,
847
+ key: Any | None = None,
848
+ id: Any | None = None,
849
+ class_name: Any | None = None,
850
+ autofocus: bool | None = None,
851
+ custom_attrs: dict[str, Var | Any] | None = None,
888
852
  on_blur: Optional[EventType[()]] = None,
889
853
  on_click: Optional[EventType[()]] = None,
890
854
  on_context_menu: Optional[EventType[()]] = None,
@@ -929,16 +893,16 @@ class ContextMenuRadioGroup(RadixThemesComponent):
929
893
  def create( # type: ignore
930
894
  cls,
931
895
  *children,
932
- as_child: Optional[Union[Var[bool], bool]] = None,
933
- value: Optional[Union[Var[str], str]] = None,
934
- style: Optional[Style] = None,
935
- key: Optional[Any] = None,
936
- id: Optional[Any] = None,
937
- class_name: Optional[Any] = None,
938
- autofocus: Optional[bool] = None,
939
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
896
+ as_child: Var[bool] | bool | None = None,
897
+ value: Var[str] | str | None = None,
898
+ style: Style | None = None,
899
+ key: Any | None = None,
900
+ id: Any | None = None,
901
+ class_name: Any | None = None,
902
+ autofocus: bool | None = None,
903
+ custom_attrs: dict[str, Var | Any] | None = None,
940
904
  on_blur: Optional[EventType[()]] = None,
941
- on_change: Optional[Union[EventType[()], EventType[str]]] = None,
905
+ on_change: Optional[EventType[()] | EventType[str]] = None,
942
906
  on_click: Optional[EventType[()]] = None,
943
907
  on_context_menu: Optional[EventType[()]] = None,
944
908
  on_double_click: Optional[EventType[()]] = None,
@@ -984,104 +948,90 @@ class ContextMenuRadioItem(HighLevelRadioGroup):
984
948
  def create( # type: ignore
985
949
  cls,
986
950
  *children,
987
- color_scheme: Optional[
988
- Union[
989
- Literal[
990
- "amber",
991
- "blue",
992
- "bronze",
993
- "brown",
994
- "crimson",
995
- "cyan",
996
- "gold",
997
- "grass",
998
- "gray",
999
- "green",
1000
- "indigo",
1001
- "iris",
1002
- "jade",
1003
- "lime",
1004
- "mint",
1005
- "orange",
1006
- "pink",
1007
- "plum",
1008
- "purple",
1009
- "red",
1010
- "ruby",
1011
- "sky",
1012
- "teal",
1013
- "tomato",
1014
- "violet",
1015
- "yellow",
1016
- ],
1017
- Var[
1018
- Literal[
1019
- "amber",
1020
- "blue",
1021
- "bronze",
1022
- "brown",
1023
- "crimson",
1024
- "cyan",
1025
- "gold",
1026
- "grass",
1027
- "gray",
1028
- "green",
1029
- "indigo",
1030
- "iris",
1031
- "jade",
1032
- "lime",
1033
- "mint",
1034
- "orange",
1035
- "pink",
1036
- "plum",
1037
- "purple",
1038
- "red",
1039
- "ruby",
1040
- "sky",
1041
- "teal",
1042
- "tomato",
1043
- "violet",
1044
- "yellow",
1045
- ]
1046
- ],
1047
- ]
1048
- ] = None,
1049
- as_child: Optional[Union[Var[bool], bool]] = None,
1050
- value: Optional[Union[Var[str], str]] = None,
1051
- disabled: Optional[Union[Var[bool], bool]] = None,
1052
- text_value: Optional[Union[Var[str], str]] = None,
1053
- items: Optional[Union[List[str], Var[List[str]]]] = None,
1054
- direction: Optional[
1055
- Union[
1056
- Literal["column", "column-reverse", "row", "row-reverse"],
1057
- Var[Literal["column", "column-reverse", "row", "row-reverse"]],
1058
- ]
1059
- ] = None,
1060
- spacing: Optional[
1061
- Union[
1062
- Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
1063
- Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
1064
- ]
1065
- ] = None,
1066
- size: Optional[
1067
- Union[Literal["1", "2", "3"], Var[Literal["1", "2", "3"]]]
1068
- ] = None,
1069
- variant: Optional[
1070
- Union[
1071
- Literal["classic", "soft", "surface"],
1072
- Var[Literal["classic", "soft", "surface"]],
951
+ color_scheme: Literal[
952
+ "amber",
953
+ "blue",
954
+ "bronze",
955
+ "brown",
956
+ "crimson",
957
+ "cyan",
958
+ "gold",
959
+ "grass",
960
+ "gray",
961
+ "green",
962
+ "indigo",
963
+ "iris",
964
+ "jade",
965
+ "lime",
966
+ "mint",
967
+ "orange",
968
+ "pink",
969
+ "plum",
970
+ "purple",
971
+ "red",
972
+ "ruby",
973
+ "sky",
974
+ "teal",
975
+ "tomato",
976
+ "violet",
977
+ "yellow",
978
+ ]
979
+ | Var[
980
+ Literal[
981
+ "amber",
982
+ "blue",
983
+ "bronze",
984
+ "brown",
985
+ "crimson",
986
+ "cyan",
987
+ "gold",
988
+ "grass",
989
+ "gray",
990
+ "green",
991
+ "indigo",
992
+ "iris",
993
+ "jade",
994
+ "lime",
995
+ "mint",
996
+ "orange",
997
+ "pink",
998
+ "plum",
999
+ "purple",
1000
+ "red",
1001
+ "ruby",
1002
+ "sky",
1003
+ "teal",
1004
+ "tomato",
1005
+ "violet",
1006
+ "yellow",
1073
1007
  ]
1074
- ] = None,
1075
- high_contrast: Optional[Union[Var[bool], bool]] = None,
1076
- default_value: Optional[Union[Var[str], str]] = None,
1077
- name: Optional[Union[Var[str], str]] = None,
1078
- required: Optional[Union[Var[bool], bool]] = None,
1079
- style: Optional[Style] = None,
1080
- key: Optional[Any] = None,
1081
- id: Optional[Any] = None,
1082
- class_name: Optional[Any] = None,
1083
- autofocus: Optional[bool] = None,
1084
- custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
1008
+ ]
1009
+ | None = None,
1010
+ as_child: Var[bool] | bool | None = None,
1011
+ value: Var[str] | str | None = None,
1012
+ disabled: Var[bool] | bool | None = None,
1013
+ text_value: Var[str] | str | None = None,
1014
+ items: Sequence[str] | Var[Sequence[str]] | None = None,
1015
+ direction: Literal["column", "column-reverse", "row", "row-reverse"]
1016
+ | Var[Literal["column", "column-reverse", "row", "row-reverse"]]
1017
+ | None = None,
1018
+ spacing: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
1019
+ | Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
1020
+ | None = None,
1021
+ size: Literal["1", "2", "3"] | Var[Literal["1", "2", "3"]] | None = None,
1022
+ variant: Literal["classic", "soft", "surface"]
1023
+ | Var[Literal["classic", "soft", "surface"]]
1024
+ | None = None,
1025
+ high_contrast: Var[bool] | bool | None = None,
1026
+ default_value: Var[str] | str | None = None,
1027
+ name: Var[str] | str | None = None,
1028
+ required: Var[bool] | bool | None = None,
1029
+ style: Style | None = None,
1030
+ key: Any | None = None,
1031
+ id: Any | None = None,
1032
+ class_name: Any | None = None,
1033
+ autofocus: bool | None = None,
1034
+ custom_attrs: dict[str, Var | Any] | None = None,
1085
1035
  on_blur: Optional[EventType[()]] = None,
1086
1036
  on_click: Optional[EventType[()]] = None,
1087
1037
  on_context_menu: Optional[EventType[()]] = None,