reflex 0.8.15a1__py3-none-any.whl → 0.8.16a1__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 (139) hide show
  1. reflex/.templates/web/utils/state.js +68 -8
  2. reflex/app.py +45 -51
  3. reflex/app_mixins/lifespan.py +12 -5
  4. reflex/base.py +1 -0
  5. reflex/compiler/compiler.py +4 -6
  6. reflex/compiler/templates.py +25 -31
  7. reflex/compiler/utils.py +6 -5
  8. reflex/components/base/body.pyi +1 -195
  9. reflex/components/base/link.pyi +1 -407
  10. reflex/components/base/meta.pyi +1 -405
  11. reflex/components/base/script.pyi +1 -237
  12. reflex/components/component.py +41 -46
  13. reflex/components/core/auto_scroll.pyi +1 -195
  14. reflex/components/core/banner.pyi +1 -391
  15. reflex/components/core/breakpoints.py +14 -18
  16. reflex/components/core/html.pyi +1 -197
  17. reflex/components/core/match.py +2 -2
  18. reflex/components/core/sticky.py +11 -15
  19. reflex/components/core/sticky.pyi +0 -788
  20. reflex/components/core/upload.py +1 -3
  21. reflex/components/datadisplay/code.pyi +1 -0
  22. reflex/components/datadisplay/dataeditor.py +4 -6
  23. reflex/components/datadisplay/shiki_code_block.py +106 -110
  24. reflex/components/dynamic.py +4 -6
  25. reflex/components/el/elements/__init__.py +5 -7
  26. reflex/components/el/elements/__init__.pyi +5 -7
  27. reflex/components/el/elements/base.py +1 -1
  28. reflex/components/el/elements/base.pyi +1 -195
  29. reflex/components/el/elements/forms.py +7 -9
  30. reflex/components/el/elements/forms.pyi +12 -3112
  31. reflex/components/el/elements/inline.pyi +0 -5481
  32. reflex/components/el/elements/media.pyi +0 -10280
  33. reflex/components/el/elements/metadata.pyi +1 -835
  34. reflex/components/el/elements/other.pyi +1 -1365
  35. reflex/components/el/elements/scripts.pyi +1 -625
  36. reflex/components/el/elements/sectioning.pyi +1 -2911
  37. reflex/components/el/elements/tables.pyi +1 -1973
  38. reflex/components/el/elements/typography.pyi +1 -3125
  39. reflex/components/lucide/icon.py +4 -4
  40. reflex/components/lucide/icon.pyi +0 -4
  41. reflex/components/markdown/markdown.py +15 -19
  42. reflex/components/markdown/markdown.pyi +1 -0
  43. reflex/components/moment/moment.pyi +0 -49
  44. reflex/components/props.py +3 -3
  45. reflex/components/radix/primitives/accordion.py +4 -6
  46. reflex/components/radix/primitives/accordion.pyi +0 -14
  47. reflex/components/radix/primitives/base.pyi +0 -5
  48. reflex/components/radix/primitives/dialog.py +2 -0
  49. reflex/components/radix/primitives/dialog.pyi +1 -233
  50. reflex/components/radix/primitives/drawer.pyi +0 -18
  51. reflex/components/radix/primitives/form.pyi +30 -632
  52. reflex/components/radix/primitives/progress.pyi +0 -10
  53. reflex/components/radix/primitives/slider.pyi +0 -10
  54. reflex/components/radix/themes/color_mode.pyi +1 -284
  55. reflex/components/radix/themes/components/alert_dialog.pyi +0 -207
  56. reflex/components/radix/themes/components/aspect_ratio.pyi +0 -2
  57. reflex/components/radix/themes/components/avatar.pyi +0 -80
  58. reflex/components/radix/themes/components/badge.pyi +1 -270
  59. reflex/components/radix/themes/components/button.pyi +1 -274
  60. reflex/components/radix/themes/components/callout.pyi +0 -1197
  61. reflex/components/radix/themes/components/card.pyi +1 -209
  62. reflex/components/radix/themes/components/checkbox.pyi +0 -261
  63. reflex/components/radix/themes/components/checkbox_cards.pyi +1 -96
  64. reflex/components/radix/themes/components/checkbox_group.pyi +1 -80
  65. reflex/components/radix/themes/components/context_menu.pyi +13 -321
  66. reflex/components/radix/themes/components/data_list.pyi +1 -107
  67. reflex/components/radix/themes/components/dialog.pyi +1 -210
  68. reflex/components/radix/themes/components/dropdown_menu.pyi +0 -209
  69. reflex/components/radix/themes/components/hover_card.pyi +1 -246
  70. reflex/components/radix/themes/components/icon_button.pyi +1 -195
  71. reflex/components/radix/themes/components/inset.pyi +0 -252
  72. reflex/components/radix/themes/components/popover.pyi +1 -234
  73. reflex/components/radix/themes/components/progress.pyi +1 -84
  74. reflex/components/radix/themes/components/radio.pyi +1 -72
  75. reflex/components/radix/themes/components/radio_cards.pyi +1 -123
  76. reflex/components/radix/themes/components/scroll_area.pyi +1 -11
  77. reflex/components/radix/themes/components/select.pyi +1 -376
  78. reflex/components/radix/themes/components/separator.pyi +0 -77
  79. reflex/components/radix/themes/components/skeleton.pyi +0 -30
  80. reflex/components/radix/themes/components/slider.py +3 -5
  81. reflex/components/radix/themes/components/spinner.pyi +0 -5
  82. reflex/components/radix/themes/components/switch.pyi +0 -89
  83. reflex/components/radix/themes/components/table.pyi +0 -1453
  84. reflex/components/radix/themes/components/text_area.pyi +7 -282
  85. reflex/components/radix/themes/components/text_field.pyi +6 -392
  86. reflex/components/radix/themes/components/tooltip.pyi +0 -42
  87. reflex/components/radix/themes/layout/box.pyi +1 -195
  88. reflex/components/radix/themes/layout/center.pyi +0 -194
  89. reflex/components/radix/themes/layout/container.pyi +0 -178
  90. reflex/components/radix/themes/layout/flex.pyi +0 -194
  91. reflex/components/radix/themes/layout/grid.pyi +0 -194
  92. reflex/components/radix/themes/layout/list.pyi +0 -978
  93. reflex/components/radix/themes/layout/section.pyi +0 -194
  94. reflex/components/radix/themes/layout/spacer.pyi +0 -194
  95. reflex/components/radix/themes/layout/stack.pyi +0 -582
  96. reflex/components/radix/themes/typography/blockquote.pyi +0 -196
  97. reflex/components/radix/themes/typography/code.pyi +0 -194
  98. reflex/components/radix/themes/typography/heading.pyi +0 -194
  99. reflex/components/radix/themes/typography/link.pyi +0 -237
  100. reflex/components/radix/themes/typography/text.pyi +0 -1360
  101. reflex/components/react_router/dom.pyi +0 -237
  102. reflex/components/recharts/cartesian.py +12 -18
  103. reflex/components/recharts/general.py +12 -18
  104. reflex/constants/installer.py +5 -5
  105. reflex/custom_components/custom_components.py +6 -5
  106. reflex/environment.py +30 -7
  107. reflex/event.py +14 -12
  108. reflex/experimental/client_state.py +11 -12
  109. reflex/istate/data.py +8 -10
  110. reflex/istate/manager/__init__.py +3 -0
  111. reflex/istate/manager/disk.py +151 -5
  112. reflex/model.py +1 -1
  113. reflex/plugins/_screenshot.py +2 -2
  114. reflex/plugins/shared_tailwind.py +9 -14
  115. reflex/reflex.py +7 -9
  116. reflex/state.py +30 -37
  117. reflex/style.py +6 -6
  118. reflex/testing.py +54 -30
  119. reflex/utils/codespaces.py +31 -2
  120. reflex/utils/compat.py +1 -0
  121. reflex/utils/decorator.py +3 -3
  122. reflex/utils/format.py +18 -22
  123. reflex/utils/prerequisites.py +1 -1
  124. reflex/utils/pyi_generator.py +51 -57
  125. reflex/utils/serializers.py +1 -1
  126. reflex/utils/telemetry.py +1 -1
  127. reflex/utils/templates.py +4 -4
  128. reflex/utils/types.py +11 -4
  129. reflex/vars/base.py +26 -29
  130. reflex/vars/color.py +6 -8
  131. reflex/vars/dep_tracking.py +5 -3
  132. reflex/vars/function.py +3 -3
  133. reflex/vars/object.py +9 -13
  134. reflex/vars/sequence.py +18 -24
  135. {reflex-0.8.15a1.dist-info → reflex-0.8.16a1.dist-info}/METADATA +1 -1
  136. {reflex-0.8.15a1.dist-info → reflex-0.8.16a1.dist-info}/RECORD +139 -139
  137. {reflex-0.8.15a1.dist-info → reflex-0.8.16a1.dist-info}/WHEEL +0 -0
  138. {reflex-0.8.15a1.dist-info → reflex-0.8.16a1.dist-info}/entry_points.txt +0 -0
  139. {reflex-0.8.15a1.dist-info → reflex-0.8.16a1.dist-info}/licenses/LICENSE +0 -0
@@ -105,8 +105,9 @@ class TextFieldRoot(elements.Input, RadixThemesComponent):
105
105
  accept: Var[str] | str | None = None,
106
106
  alt: Var[str] | str | None = None,
107
107
  auto_focus: Var[bool] | bool | None = None,
108
- capture: Literal["environment", "user", False, True]
109
- | Var[Literal["environment", "user", False, True]]
108
+ capture: Literal["environment", "user"]
109
+ | Var[Literal["environment", "user"] | bool]
110
+ | bool
110
111
  | None = None,
111
112
  checked: Var[bool] | bool | None = None,
112
113
  default_checked: Var[bool] | bool | None = None,
@@ -122,184 +123,6 @@ class TextFieldRoot(elements.Input, RadixThemesComponent):
122
123
  pattern: Var[str] | str | None = None,
123
124
  src: Var[str] | str | None = None,
124
125
  step: Var[float | int | str] | float | int | str | None = None,
125
- access_key: Var[str] | str | None = None,
126
- auto_capitalize: Literal[
127
- "characters", "none", "off", "on", "sentences", "words"
128
- ]
129
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
130
- | None = None,
131
- content_editable: Literal["inherit", "plaintext-only", False, True]
132
- | Var[Literal["inherit", "plaintext-only", False, True]]
133
- | None = None,
134
- context_menu: Var[str] | str | None = None,
135
- dir: Var[str] | str | None = None,
136
- draggable: Var[bool] | bool | None = None,
137
- enter_key_hint: Literal[
138
- "done", "enter", "go", "next", "previous", "search", "send"
139
- ]
140
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
141
- | None = None,
142
- hidden: Var[bool] | bool | None = None,
143
- input_mode: Literal[
144
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
145
- ]
146
- | Var[
147
- Literal[
148
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
149
- ]
150
- ]
151
- | None = None,
152
- item_prop: Var[str] | str | None = None,
153
- lang: Var[str] | str | None = None,
154
- role: Literal[
155
- "alert",
156
- "alertdialog",
157
- "application",
158
- "article",
159
- "banner",
160
- "button",
161
- "cell",
162
- "checkbox",
163
- "columnheader",
164
- "combobox",
165
- "complementary",
166
- "contentinfo",
167
- "definition",
168
- "dialog",
169
- "directory",
170
- "document",
171
- "feed",
172
- "figure",
173
- "form",
174
- "grid",
175
- "gridcell",
176
- "group",
177
- "heading",
178
- "img",
179
- "link",
180
- "list",
181
- "listbox",
182
- "listitem",
183
- "log",
184
- "main",
185
- "marquee",
186
- "math",
187
- "menu",
188
- "menubar",
189
- "menuitem",
190
- "menuitemcheckbox",
191
- "menuitemradio",
192
- "navigation",
193
- "none",
194
- "note",
195
- "option",
196
- "presentation",
197
- "progressbar",
198
- "radio",
199
- "radiogroup",
200
- "region",
201
- "row",
202
- "rowgroup",
203
- "rowheader",
204
- "scrollbar",
205
- "search",
206
- "searchbox",
207
- "separator",
208
- "slider",
209
- "spinbutton",
210
- "status",
211
- "switch",
212
- "tab",
213
- "table",
214
- "tablist",
215
- "tabpanel",
216
- "term",
217
- "textbox",
218
- "timer",
219
- "toolbar",
220
- "tooltip",
221
- "tree",
222
- "treegrid",
223
- "treeitem",
224
- ]
225
- | Var[
226
- Literal[
227
- "alert",
228
- "alertdialog",
229
- "application",
230
- "article",
231
- "banner",
232
- "button",
233
- "cell",
234
- "checkbox",
235
- "columnheader",
236
- "combobox",
237
- "complementary",
238
- "contentinfo",
239
- "definition",
240
- "dialog",
241
- "directory",
242
- "document",
243
- "feed",
244
- "figure",
245
- "form",
246
- "grid",
247
- "gridcell",
248
- "group",
249
- "heading",
250
- "img",
251
- "link",
252
- "list",
253
- "listbox",
254
- "listitem",
255
- "log",
256
- "main",
257
- "marquee",
258
- "math",
259
- "menu",
260
- "menubar",
261
- "menuitem",
262
- "menuitemcheckbox",
263
- "menuitemradio",
264
- "navigation",
265
- "none",
266
- "note",
267
- "option",
268
- "presentation",
269
- "progressbar",
270
- "radio",
271
- "radiogroup",
272
- "region",
273
- "row",
274
- "rowgroup",
275
- "rowheader",
276
- "scrollbar",
277
- "search",
278
- "searchbox",
279
- "separator",
280
- "slider",
281
- "spinbutton",
282
- "status",
283
- "switch",
284
- "tab",
285
- "table",
286
- "tablist",
287
- "tabpanel",
288
- "term",
289
- "textbox",
290
- "timer",
291
- "toolbar",
292
- "tooltip",
293
- "tree",
294
- "treegrid",
295
- "treeitem",
296
- ]
297
- ]
298
- | None = None,
299
- slot: Var[str] | str | None = None,
300
- spell_check: Var[bool] | bool | None = None,
301
- tab_index: Var[int] | int | None = None,
302
- title: Var[str] | str | None = None,
303
126
  style: Sequence[Mapping[str, Any]]
304
127
  | Mapping[str, Any]
305
128
  | Var[Mapping[str, Any]]
@@ -380,22 +203,6 @@ class TextFieldRoot(elements.Input, RadixThemesComponent):
380
203
  pattern: Regex pattern the input's value must match to be valid
381
204
  src: URL for image inputs
382
205
  step: Specifies the legal number intervals for an input
383
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
384
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
385
- content_editable: Indicates whether the element's content is editable.
386
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
387
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
388
- draggable: Defines whether the element can be dragged.
389
- enter_key_hint: Hints what media types the media element is able to play.
390
- hidden: Defines whether the element is hidden.
391
- input_mode: Defines the type of the element.
392
- item_prop: Defines the name of the element for metadata purposes.
393
- lang: Defines the language used in the element.
394
- role: Defines the role of the element.
395
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
396
- spell_check: Defines whether the element may be checked for spelling errors.
397
- tab_index: Defines the position of the current element in the tabbing order.
398
- title: Defines a tooltip for the element.
399
206
  style: The style of the component.
400
207
  key: A unique key for the component.
401
208
  id: The id for the component.
@@ -612,8 +419,9 @@ class TextField(ComponentNamespace):
612
419
  accept: Var[str] | str | None = None,
613
420
  alt: Var[str] | str | None = None,
614
421
  auto_focus: Var[bool] | bool | None = None,
615
- capture: Literal["environment", "user", False, True]
616
- | Var[Literal["environment", "user", False, True]]
422
+ capture: Literal["environment", "user"]
423
+ | Var[Literal["environment", "user"] | bool]
424
+ | bool
617
425
  | None = None,
618
426
  checked: Var[bool] | bool | None = None,
619
427
  default_checked: Var[bool] | bool | None = None,
@@ -629,184 +437,6 @@ class TextField(ComponentNamespace):
629
437
  pattern: Var[str] | str | None = None,
630
438
  src: Var[str] | str | None = None,
631
439
  step: Var[float | int | str] | float | int | str | None = None,
632
- access_key: Var[str] | str | None = None,
633
- auto_capitalize: Literal[
634
- "characters", "none", "off", "on", "sentences", "words"
635
- ]
636
- | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
637
- | None = None,
638
- content_editable: Literal["inherit", "plaintext-only", False, True]
639
- | Var[Literal["inherit", "plaintext-only", False, True]]
640
- | None = None,
641
- context_menu: Var[str] | str | None = None,
642
- dir: Var[str] | str | None = None,
643
- draggable: Var[bool] | bool | None = None,
644
- enter_key_hint: Literal[
645
- "done", "enter", "go", "next", "previous", "search", "send"
646
- ]
647
- | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
648
- | None = None,
649
- hidden: Var[bool] | bool | None = None,
650
- input_mode: Literal[
651
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
652
- ]
653
- | Var[
654
- Literal[
655
- "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
656
- ]
657
- ]
658
- | None = None,
659
- item_prop: Var[str] | str | None = None,
660
- lang: Var[str] | str | None = None,
661
- role: Literal[
662
- "alert",
663
- "alertdialog",
664
- "application",
665
- "article",
666
- "banner",
667
- "button",
668
- "cell",
669
- "checkbox",
670
- "columnheader",
671
- "combobox",
672
- "complementary",
673
- "contentinfo",
674
- "definition",
675
- "dialog",
676
- "directory",
677
- "document",
678
- "feed",
679
- "figure",
680
- "form",
681
- "grid",
682
- "gridcell",
683
- "group",
684
- "heading",
685
- "img",
686
- "link",
687
- "list",
688
- "listbox",
689
- "listitem",
690
- "log",
691
- "main",
692
- "marquee",
693
- "math",
694
- "menu",
695
- "menubar",
696
- "menuitem",
697
- "menuitemcheckbox",
698
- "menuitemradio",
699
- "navigation",
700
- "none",
701
- "note",
702
- "option",
703
- "presentation",
704
- "progressbar",
705
- "radio",
706
- "radiogroup",
707
- "region",
708
- "row",
709
- "rowgroup",
710
- "rowheader",
711
- "scrollbar",
712
- "search",
713
- "searchbox",
714
- "separator",
715
- "slider",
716
- "spinbutton",
717
- "status",
718
- "switch",
719
- "tab",
720
- "table",
721
- "tablist",
722
- "tabpanel",
723
- "term",
724
- "textbox",
725
- "timer",
726
- "toolbar",
727
- "tooltip",
728
- "tree",
729
- "treegrid",
730
- "treeitem",
731
- ]
732
- | Var[
733
- Literal[
734
- "alert",
735
- "alertdialog",
736
- "application",
737
- "article",
738
- "banner",
739
- "button",
740
- "cell",
741
- "checkbox",
742
- "columnheader",
743
- "combobox",
744
- "complementary",
745
- "contentinfo",
746
- "definition",
747
- "dialog",
748
- "directory",
749
- "document",
750
- "feed",
751
- "figure",
752
- "form",
753
- "grid",
754
- "gridcell",
755
- "group",
756
- "heading",
757
- "img",
758
- "link",
759
- "list",
760
- "listbox",
761
- "listitem",
762
- "log",
763
- "main",
764
- "marquee",
765
- "math",
766
- "menu",
767
- "menubar",
768
- "menuitem",
769
- "menuitemcheckbox",
770
- "menuitemradio",
771
- "navigation",
772
- "none",
773
- "note",
774
- "option",
775
- "presentation",
776
- "progressbar",
777
- "radio",
778
- "radiogroup",
779
- "region",
780
- "row",
781
- "rowgroup",
782
- "rowheader",
783
- "scrollbar",
784
- "search",
785
- "searchbox",
786
- "separator",
787
- "slider",
788
- "spinbutton",
789
- "status",
790
- "switch",
791
- "tab",
792
- "table",
793
- "tablist",
794
- "tabpanel",
795
- "term",
796
- "textbox",
797
- "timer",
798
- "toolbar",
799
- "tooltip",
800
- "tree",
801
- "treegrid",
802
- "treeitem",
803
- ]
804
- ]
805
- | None = None,
806
- slot: Var[str] | str | None = None,
807
- spell_check: Var[bool] | bool | None = None,
808
- tab_index: Var[int] | int | None = None,
809
- title: Var[str] | str | None = None,
810
440
  style: Sequence[Mapping[str, Any]]
811
441
  | Mapping[str, Any]
812
442
  | Var[Mapping[str, Any]]
@@ -887,22 +517,6 @@ class TextField(ComponentNamespace):
887
517
  pattern: Regex pattern the input's value must match to be valid
888
518
  src: URL for image inputs
889
519
  step: Specifies the legal number intervals for an input
890
- access_key: Provides a hint for generating a keyboard shortcut for the current element.
891
- auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
892
- content_editable: Indicates whether the element's content is editable.
893
- context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
894
- dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
895
- draggable: Defines whether the element can be dragged.
896
- enter_key_hint: Hints what media types the media element is able to play.
897
- hidden: Defines whether the element is hidden.
898
- input_mode: Defines the type of the element.
899
- item_prop: Defines the name of the element for metadata purposes.
900
- lang: Defines the language used in the element.
901
- role: Defines the role of the element.
902
- slot: Assigns a slot in a shadow DOM shadow tree to an element.
903
- spell_check: Defines whether the element may be checked for spelling errors.
904
- tab_index: Defines the position of the current element in the tabbing order.
905
- title: Defines a tooltip for the element.
906
520
  style: The style of the component.
907
521
  key: A unique key for the component.
908
522
  id: The id for the component.
@@ -21,32 +21,6 @@ class Tooltip(RadixThemesComponent):
21
21
  def create(
22
22
  cls,
23
23
  *children,
24
- content: Var[str] | str | None = None,
25
- default_open: Var[bool] | bool | None = None,
26
- open: Var[bool] | bool | None = None,
27
- side: Literal["bottom", "left", "right", "top"]
28
- | Var[Literal["bottom", "left", "right", "top"]]
29
- | None = None,
30
- side_offset: Var[float | int] | float | int | None = None,
31
- align: Literal["center", "end", "start"]
32
- | Var[Literal["center", "end", "start"]]
33
- | None = None,
34
- align_offset: Var[float | int] | float | int | None = None,
35
- avoid_collisions: Var[bool] | bool | None = None,
36
- collision_padding: Var[dict[str, float | int] | float | int]
37
- | dict[str, float | int]
38
- | float
39
- | int
40
- | None = None,
41
- arrow_padding: Var[float | int] | float | int | None = None,
42
- sticky: Literal["always", "partial"]
43
- | Var[Literal["always", "partial"]]
44
- | None = None,
45
- hide_when_detached: Var[bool] | bool | None = None,
46
- delay_duration: Var[float | int] | float | int | None = None,
47
- disable_hoverable_content: Var[bool] | bool | None = None,
48
- force_mount: Var[bool] | bool | None = None,
49
- aria_label: Var[str] | str | None = None,
50
24
  style: Sequence[Mapping[str, Any]]
51
25
  | Mapping[str, Any]
52
26
  | Var[Mapping[str, Any]]
@@ -84,22 +58,6 @@ class Tooltip(RadixThemesComponent):
84
58
 
85
59
  Args:
86
60
  *children: The positional arguments
87
- content: The content of the tooltip.
88
- default_open: The open state of the tooltip when it is initially rendered. Use when you do not need to control its open state.
89
- open: The controlled open state of the tooltip. Must be used in conjunction with `on_open_change`.
90
- side: The preferred side of the trigger to render against when open. Will be reversed when collisions occur and `avoid_collisions` is enabled.The position of the tooltip. Defaults to "top".
91
- side_offset: The distance in pixels from the trigger. Defaults to 0.
92
- align: The preferred alignment against the trigger. May change when collisions occur. Defaults to "center".
93
- align_offset: An offset in pixels from the "start" or "end" alignment options.
94
- avoid_collisions: When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
95
- collision_padding: The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { "top": 20, "left": 20 }. Defaults to 0.
96
- arrow_padding: The padding between the arrow and the edges of the content. If your content has border-radius, this will prevent it from overflowing the corners. Defaults to 0.
97
- sticky: The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. Defaults to "partial".
98
- hide_when_detached: Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
99
- delay_duration: Override the duration in milliseconds to customize the open delay for a specific tooltip. Default is 700.
100
- disable_hoverable_content: Prevents Tooltip content from remaining open when hovering.
101
- force_mount: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
102
- aria_label: By default, screenreaders will announce the content inside the component. If this is not descriptive enough, or you have content that cannot be announced, use aria-label as a more descriptive label.
103
61
  on_open_change: Fired when the open state changes.
104
62
  on_escape_key_down: Fired when the escape key is pressed.
105
63
  on_pointer_down_outside: Fired when the pointer is down outside the tooltip.