reflex 0.5.9.dev1__py3-none-any.whl → 0.5.10a1__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.
- reflex/.templates/web/utils/client_side_routing.js +6 -1
- reflex/__init__.py +21 -2
- reflex/__init__.pyi +0 -1
- reflex/app.py +1 -1
- reflex/components/__init__.py +0 -1
- reflex/components/__init__.pyi +0 -1
- reflex/components/markdown/markdown.py +1 -1
- reflex/components/recharts/cartesian.py +3 -0
- reflex/components/recharts/cartesian.pyi +2 -0
- reflex/components/sonner/toast.py +27 -1
- reflex/components/sonner/toast.pyi +5 -0
- reflex/constants/base.py +2 -0
- reflex/constants/installer.py +2 -0
- reflex/experimental/hooks.py +1 -1
- reflex/reflex.py +0 -15
- reflex/state.py +22 -22
- reflex/testing.py +8 -3
- reflex/utils/prerequisites.py +16 -115
- reflex/utils/registry.py +48 -0
- reflex/utils/types.py +1 -1
- reflex/vars.py +4 -2
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10a1.dist-info}/METADATA +2 -1
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10a1.dist-info}/RECORD +26 -168
- reflex/components/chakra/__init__.py +0 -204
- reflex/components/chakra/base.py +0 -210
- reflex/components/chakra/base.pyi +0 -319
- reflex/components/chakra/datadisplay/__init__.py +0 -10
- reflex/components/chakra/datadisplay/badge.py +0 -16
- reflex/components/chakra/datadisplay/badge.pyi +0 -96
- reflex/components/chakra/datadisplay/code.py +0 -11
- reflex/components/chakra/datadisplay/code.pyi +0 -87
- reflex/components/chakra/datadisplay/divider.py +0 -20
- reflex/components/chakra/datadisplay/divider.pyi +0 -100
- reflex/components/chakra/datadisplay/keyboard_key.py +0 -9
- reflex/components/chakra/datadisplay/keyboard_key.pyi +0 -87
- reflex/components/chakra/datadisplay/list.py +0 -60
- reflex/components/chakra/datadisplay/list.pyi +0 -339
- reflex/components/chakra/datadisplay/stat.py +0 -80
- reflex/components/chakra/datadisplay/stat.pyi +0 -477
- reflex/components/chakra/datadisplay/table.py +0 -305
- reflex/components/chakra/datadisplay/table.pyi +0 -737
- reflex/components/chakra/datadisplay/tag.py +0 -85
- reflex/components/chakra/datadisplay/tag.pyi +0 -433
- reflex/components/chakra/disclosure/__init__.py +0 -14
- reflex/components/chakra/disclosure/accordion.py +0 -110
- reflex/components/chakra/disclosure/accordion.pyi +0 -411
- reflex/components/chakra/disclosure/tabs.py +0 -117
- reflex/components/chakra/disclosure/tabs.pyi +0 -496
- reflex/components/chakra/disclosure/transition.py +0 -73
- reflex/components/chakra/disclosure/transition.pyi +0 -509
- reflex/components/chakra/disclosure/visuallyhidden.py +0 -9
- reflex/components/chakra/disclosure/visuallyhidden.pyi +0 -87
- reflex/components/chakra/feedback/__init__.py +0 -7
- reflex/components/chakra/feedback/alert.py +0 -68
- reflex/components/chakra/feedback/alert.pyi +0 -335
- reflex/components/chakra/feedback/circularprogress.py +0 -68
- reflex/components/chakra/feedback/circularprogress.pyi +0 -185
- reflex/components/chakra/feedback/progress.py +0 -33
- reflex/components/chakra/feedback/progress.pyi +0 -101
- reflex/components/chakra/feedback/skeleton.py +0 -70
- reflex/components/chakra/feedback/skeleton.pyi +0 -271
- reflex/components/chakra/feedback/spinner.py +0 -25
- reflex/components/chakra/feedback/spinner.pyi +0 -102
- reflex/components/chakra/forms/__init__.py +0 -49
- reflex/components/chakra/forms/button.py +0 -83
- reflex/components/chakra/forms/button.pyi +0 -262
- reflex/components/chakra/forms/checkbox.py +0 -77
- reflex/components/chakra/forms/checkbox.pyi +0 -247
- reflex/components/chakra/forms/colormodeswitch.py +0 -104
- reflex/components/chakra/forms/colormodeswitch.pyi +0 -473
- reflex/components/chakra/forms/date_picker.py +0 -11
- reflex/components/chakra/forms/date_picker.pyi +0 -129
- reflex/components/chakra/forms/date_time_picker.py +0 -11
- reflex/components/chakra/forms/date_time_picker.pyi +0 -129
- reflex/components/chakra/forms/editable.py +0 -67
- reflex/components/chakra/forms/editable.pyi +0 -343
- reflex/components/chakra/forms/email.py +0 -11
- reflex/components/chakra/forms/email.pyi +0 -129
- reflex/components/chakra/forms/form.py +0 -103
- reflex/components/chakra/forms/form.pyi +0 -484
- reflex/components/chakra/forms/iconbutton.py +0 -38
- reflex/components/chakra/forms/iconbutton.pyi +0 -108
- reflex/components/chakra/forms/input.py +0 -130
- reflex/components/chakra/forms/input.pyi +0 -566
- reflex/components/chakra/forms/multiselect.py +0 -355
- reflex/components/chakra/forms/numberinput.py +0 -128
- reflex/components/chakra/forms/numberinput.pyi +0 -442
- reflex/components/chakra/forms/password.py +0 -11
- reflex/components/chakra/forms/password.pyi +0 -129
- reflex/components/chakra/forms/pininput.py +0 -201
- reflex/components/chakra/forms/pininput.pyi +0 -215
- reflex/components/chakra/forms/radio.py +0 -101
- reflex/components/chakra/forms/radio.pyi +0 -197
- reflex/components/chakra/forms/rangeslider.py +0 -149
- reflex/components/chakra/forms/rangeslider.pyi +0 -354
- reflex/components/chakra/forms/select.py +0 -103
- reflex/components/chakra/forms/select.pyi +0 -204
- reflex/components/chakra/forms/slider.py +0 -130
- reflex/components/chakra/forms/slider.pyi +0 -449
- reflex/components/chakra/forms/switch.py +0 -49
- reflex/components/chakra/forms/switch.pyi +0 -159
- reflex/components/chakra/forms/textarea.py +0 -79
- reflex/components/chakra/forms/textarea.pyi +0 -123
- reflex/components/chakra/forms/time_picker.py +0 -11
- reflex/components/chakra/forms/time_picker.pyi +0 -129
- reflex/components/chakra/layout/__init__.py +0 -14
- reflex/components/chakra/layout/aspect_ratio.py +0 -13
- reflex/components/chakra/layout/aspect_ratio.pyi +0 -89
- reflex/components/chakra/layout/box.py +0 -31
- reflex/components/chakra/layout/box.pyi +0 -93
- reflex/components/chakra/layout/card.py +0 -100
- reflex/components/chakra/layout/card.pyi +0 -379
- reflex/components/chakra/layout/center.py +0 -21
- reflex/components/chakra/layout/center.pyi +0 -239
- reflex/components/chakra/layout/container.py +0 -13
- reflex/components/chakra/layout/container.pyi +0 -89
- reflex/components/chakra/layout/flex.py +0 -33
- reflex/components/chakra/layout/flex.pyi +0 -101
- reflex/components/chakra/layout/grid.py +0 -125
- reflex/components/chakra/layout/grid.pyi +0 -293
- reflex/components/chakra/layout/spacer.py +0 -9
- reflex/components/chakra/layout/spacer.pyi +0 -87
- reflex/components/chakra/layout/stack.py +0 -48
- reflex/components/chakra/layout/stack.pyi +0 -305
- reflex/components/chakra/layout/wrap.py +0 -57
- reflex/components/chakra/layout/wrap.pyi +0 -179
- reflex/components/chakra/media/__init__.py +0 -7
- reflex/components/chakra/media/avatar.py +0 -58
- reflex/components/chakra/media/avatar.pyi +0 -267
- reflex/components/chakra/media/icon.py +0 -111
- reflex/components/chakra/media/icon.pyi +0 -171
- reflex/components/chakra/media/image.py +0 -74
- reflex/components/chakra/media/image.pyi +0 -118
- reflex/components/chakra/navigation/__init__.py +0 -18
- reflex/components/chakra/navigation/breadcrumb.py +0 -98
- reflex/components/chakra/navigation/breadcrumb.pyi +0 -351
- reflex/components/chakra/navigation/link.py +0 -62
- reflex/components/chakra/navigation/link.pyi +0 -105
- reflex/components/chakra/navigation/linkoverlay.py +0 -22
- reflex/components/chakra/navigation/linkoverlay.pyi +0 -167
- reflex/components/chakra/navigation/stepper.py +0 -113
- reflex/components/chakra/navigation/stepper.pyi +0 -762
- reflex/components/chakra/overlay/__init__.py +0 -50
- reflex/components/chakra/overlay/alertdialog.py +0 -153
- reflex/components/chakra/overlay/alertdialog.pyi +0 -612
- reflex/components/chakra/overlay/drawer.py +0 -168
- reflex/components/chakra/overlay/drawer.pyi +0 -652
- reflex/components/chakra/overlay/menu.py +0 -225
- reflex/components/chakra/overlay/menu.pyi +0 -708
- reflex/components/chakra/overlay/modal.py +0 -166
- reflex/components/chakra/overlay/modal.pyi +0 -600
- reflex/components/chakra/overlay/popover.py +0 -183
- reflex/components/chakra/overlay/popover.pyi +0 -757
- reflex/components/chakra/overlay/tooltip.py +0 -70
- reflex/components/chakra/overlay/tooltip.pyi +0 -129
- reflex/components/chakra/typography/__init__.py +0 -10
- reflex/components/chakra/typography/heading.py +0 -16
- reflex/components/chakra/typography/heading.pyi +0 -96
- reflex/components/chakra/typography/highlight.py +0 -23
- reflex/components/chakra/typography/highlight.pyi +0 -91
- reflex/components/chakra/typography/span.py +0 -15
- reflex/components/chakra/typography/span.pyi +0 -89
- reflex/components/chakra/typography/text.py +0 -18
- reflex/components/chakra/typography/text.pyi +0 -91
- reflex/components/media/__init__.py +0 -1
- reflex/components/media/icon.py +0 -3
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10a1.dist-info}/LICENSE +0 -0
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10a1.dist-info}/WHEEL +0 -0
- {reflex-0.5.9.dev1.dist-info → reflex-0.5.10a1.dist-info}/entry_points.txt +0 -0
|
@@ -1,708 +0,0 @@
|
|
|
1
|
-
"""Stub file for reflex/components/chakra/overlay/menu.py"""
|
|
2
|
-
|
|
3
|
-
# ------------------- DO NOT EDIT ----------------------
|
|
4
|
-
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
|
-
# ------------------------------------------------------
|
|
6
|
-
from typing import Any, Callable, Dict, List, Literal, Optional, Union, overload
|
|
7
|
-
|
|
8
|
-
from reflex.components.chakra import (
|
|
9
|
-
ChakraComponent,
|
|
10
|
-
)
|
|
11
|
-
from reflex.components.component import Component
|
|
12
|
-
from reflex.event import EventHandler, EventSpec
|
|
13
|
-
from reflex.style import Style
|
|
14
|
-
from reflex.vars import BaseVar, Var
|
|
15
|
-
|
|
16
|
-
class Menu(ChakraComponent):
|
|
17
|
-
@overload
|
|
18
|
-
@classmethod
|
|
19
|
-
def create( # type: ignore
|
|
20
|
-
cls,
|
|
21
|
-
*children,
|
|
22
|
-
button: Optional[Component] = None,
|
|
23
|
-
items: Optional[List] = None,
|
|
24
|
-
arrow_padding: Optional[Union[Var[int], int]] = None,
|
|
25
|
-
auto_select: Optional[Union[Var[bool], bool]] = None,
|
|
26
|
-
boundary: Optional[Union[Var[str], str]] = None,
|
|
27
|
-
close_on_blur: Optional[Union[Var[bool], bool]] = None,
|
|
28
|
-
close_on_select: Optional[Union[Var[bool], bool]] = None,
|
|
29
|
-
default_is_open: Optional[Union[Var[bool], bool]] = None,
|
|
30
|
-
direction: Optional[
|
|
31
|
-
Union[Var[Literal["ltr", "rtl"]], Literal["ltr", "rtl"]]
|
|
32
|
-
] = None,
|
|
33
|
-
flip: Optional[Union[Var[bool], bool]] = None,
|
|
34
|
-
gutter: Optional[Union[Var[int], int]] = None,
|
|
35
|
-
is_lazy: Optional[Union[Var[bool], bool]] = None,
|
|
36
|
-
lazy_behavior: Optional[Union[Var[str], str]] = None,
|
|
37
|
-
is_open: Optional[Union[Var[bool], bool]] = None,
|
|
38
|
-
match_width: Optional[Union[Var[bool], bool]] = None,
|
|
39
|
-
placement: Optional[Union[Var[str], str]] = None,
|
|
40
|
-
prevent_overflow: Optional[Union[Var[bool], bool]] = None,
|
|
41
|
-
strategy: Optional[
|
|
42
|
-
Union[Var[Literal["fixed", "absolute"]], Literal["fixed", "absolute"]]
|
|
43
|
-
] = None,
|
|
44
|
-
style: Optional[Style] = None,
|
|
45
|
-
key: Optional[Any] = None,
|
|
46
|
-
id: Optional[Any] = None,
|
|
47
|
-
class_name: Optional[Any] = None,
|
|
48
|
-
autofocus: Optional[bool] = None,
|
|
49
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
50
|
-
on_blur: Optional[
|
|
51
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
52
|
-
] = None,
|
|
53
|
-
on_click: Optional[
|
|
54
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
55
|
-
] = None,
|
|
56
|
-
on_close: Optional[
|
|
57
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
58
|
-
] = None,
|
|
59
|
-
on_context_menu: Optional[
|
|
60
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
61
|
-
] = None,
|
|
62
|
-
on_double_click: Optional[
|
|
63
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
64
|
-
] = None,
|
|
65
|
-
on_focus: Optional[
|
|
66
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
67
|
-
] = None,
|
|
68
|
-
on_mount: Optional[
|
|
69
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
70
|
-
] = None,
|
|
71
|
-
on_mouse_down: Optional[
|
|
72
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
73
|
-
] = None,
|
|
74
|
-
on_mouse_enter: Optional[
|
|
75
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
76
|
-
] = None,
|
|
77
|
-
on_mouse_leave: Optional[
|
|
78
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
79
|
-
] = None,
|
|
80
|
-
on_mouse_move: Optional[
|
|
81
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
82
|
-
] = None,
|
|
83
|
-
on_mouse_out: Optional[
|
|
84
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
85
|
-
] = None,
|
|
86
|
-
on_mouse_over: Optional[
|
|
87
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
88
|
-
] = None,
|
|
89
|
-
on_mouse_up: Optional[
|
|
90
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
91
|
-
] = None,
|
|
92
|
-
on_open: Optional[
|
|
93
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
94
|
-
] = None,
|
|
95
|
-
on_scroll: Optional[
|
|
96
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
97
|
-
] = None,
|
|
98
|
-
on_unmount: Optional[
|
|
99
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
100
|
-
] = None,
|
|
101
|
-
**props,
|
|
102
|
-
) -> "Menu":
|
|
103
|
-
"""Create a menu component.
|
|
104
|
-
|
|
105
|
-
Args:
|
|
106
|
-
*children: The children of the component.
|
|
107
|
-
button: the button that open the menu.
|
|
108
|
-
items (list): The items of the menu.
|
|
109
|
-
arrow_padding: The padding required to prevent the arrow from reaching the very edge of the popper.
|
|
110
|
-
auto_select: If true, the first enabled menu item will receive focus and be selected when the menu opens.
|
|
111
|
-
boundary: The boundary area for the popper. Used within the preventOverflow modifier
|
|
112
|
-
close_on_blur: If true, the menu will close when you click outside the menu list
|
|
113
|
-
close_on_select: If true, the menu will close when a menu item is clicked
|
|
114
|
-
default_is_open: If by default the menu is open.
|
|
115
|
-
direction: If rtl, popper placement positions will be flipped i.e. 'top-right' will become 'top-left' and vice-verse ("ltr" | "rtl")
|
|
116
|
-
flip: If true, the popper will change its placement and flip when it's about to overflow its boundary area.
|
|
117
|
-
gutter: The distance or margin between the reference and popper. It is used internally to create an offset modifier. NB: If you define offset prop, it'll override the gutter.
|
|
118
|
-
is_lazy: Performance 🚀: If true, the MenuItem rendering will be deferred until the menu is open.
|
|
119
|
-
lazy_behavior: Performance 🚀: The lazy behavior of menu's content when not visible. Only works when `isLazy={true}` - "unmount": The menu's content is always unmounted when not open. - "keepMounted": The menu's content initially unmounted, but stays mounted when menu is open.
|
|
120
|
-
is_open: Determines if the menu is open or not.
|
|
121
|
-
match_width: If true, the popper will match the width of the reference at all times. It's useful for autocomplete, `date-picker` and select patterns.
|
|
122
|
-
placement: The placement of the popper relative to its reference.
|
|
123
|
-
prevent_overflow: If true, will prevent the popper from being cut off and ensure it's visible within the boundary area.
|
|
124
|
-
strategy: The CSS positioning strategy to use. ("fixed" | "absolute")
|
|
125
|
-
style: The style of the component.
|
|
126
|
-
key: A unique key for the component.
|
|
127
|
-
id: The id for the component.
|
|
128
|
-
class_name: The class name for the component.
|
|
129
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
130
|
-
custom_attrs: custom attribute
|
|
131
|
-
**props: The properties of the component.
|
|
132
|
-
|
|
133
|
-
Returns:
|
|
134
|
-
The menu component.
|
|
135
|
-
"""
|
|
136
|
-
...
|
|
137
|
-
|
|
138
|
-
class MenuButton(ChakraComponent):
|
|
139
|
-
@overload
|
|
140
|
-
@classmethod
|
|
141
|
-
def create( # type: ignore
|
|
142
|
-
cls,
|
|
143
|
-
*children,
|
|
144
|
-
variant: Optional[Union[Var[str], str]] = None,
|
|
145
|
-
as_: Optional[Union[Var[str], str]] = None,
|
|
146
|
-
style: Optional[Style] = None,
|
|
147
|
-
key: Optional[Any] = None,
|
|
148
|
-
id: Optional[Any] = None,
|
|
149
|
-
class_name: Optional[Any] = None,
|
|
150
|
-
autofocus: Optional[bool] = None,
|
|
151
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
152
|
-
on_blur: Optional[
|
|
153
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
154
|
-
] = None,
|
|
155
|
-
on_click: Optional[
|
|
156
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
157
|
-
] = None,
|
|
158
|
-
on_context_menu: Optional[
|
|
159
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
160
|
-
] = None,
|
|
161
|
-
on_double_click: Optional[
|
|
162
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
163
|
-
] = None,
|
|
164
|
-
on_focus: Optional[
|
|
165
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
166
|
-
] = None,
|
|
167
|
-
on_mount: Optional[
|
|
168
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
169
|
-
] = None,
|
|
170
|
-
on_mouse_down: Optional[
|
|
171
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
172
|
-
] = None,
|
|
173
|
-
on_mouse_enter: Optional[
|
|
174
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
175
|
-
] = None,
|
|
176
|
-
on_mouse_leave: Optional[
|
|
177
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
178
|
-
] = None,
|
|
179
|
-
on_mouse_move: Optional[
|
|
180
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
181
|
-
] = None,
|
|
182
|
-
on_mouse_out: Optional[
|
|
183
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
184
|
-
] = None,
|
|
185
|
-
on_mouse_over: Optional[
|
|
186
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
187
|
-
] = None,
|
|
188
|
-
on_mouse_up: Optional[
|
|
189
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
190
|
-
] = None,
|
|
191
|
-
on_scroll: Optional[
|
|
192
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
193
|
-
] = None,
|
|
194
|
-
on_unmount: Optional[
|
|
195
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
196
|
-
] = None,
|
|
197
|
-
**props,
|
|
198
|
-
) -> "MenuButton":
|
|
199
|
-
"""Create the component.
|
|
200
|
-
|
|
201
|
-
Args:
|
|
202
|
-
*children: The children of the component.
|
|
203
|
-
variant: The variant of the menu button.
|
|
204
|
-
as_: The tag to use for the menu button.
|
|
205
|
-
style: The style of the component.
|
|
206
|
-
key: A unique key for the component.
|
|
207
|
-
id: The id for the component.
|
|
208
|
-
class_name: The class name for the component.
|
|
209
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
210
|
-
custom_attrs: custom attribute
|
|
211
|
-
**props: The props of the component.
|
|
212
|
-
|
|
213
|
-
Returns:
|
|
214
|
-
The component.
|
|
215
|
-
"""
|
|
216
|
-
...
|
|
217
|
-
|
|
218
|
-
class MenuList(ChakraComponent):
|
|
219
|
-
@overload
|
|
220
|
-
@classmethod
|
|
221
|
-
def create( # type: ignore
|
|
222
|
-
cls,
|
|
223
|
-
*children,
|
|
224
|
-
items: Optional[list] = None,
|
|
225
|
-
style: Optional[Style] = None,
|
|
226
|
-
key: Optional[Any] = None,
|
|
227
|
-
id: Optional[Any] = None,
|
|
228
|
-
class_name: Optional[Any] = None,
|
|
229
|
-
autofocus: Optional[bool] = None,
|
|
230
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
231
|
-
on_blur: Optional[
|
|
232
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
233
|
-
] = None,
|
|
234
|
-
on_click: Optional[
|
|
235
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
236
|
-
] = None,
|
|
237
|
-
on_context_menu: Optional[
|
|
238
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
239
|
-
] = None,
|
|
240
|
-
on_double_click: Optional[
|
|
241
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
242
|
-
] = None,
|
|
243
|
-
on_focus: Optional[
|
|
244
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
245
|
-
] = None,
|
|
246
|
-
on_mount: Optional[
|
|
247
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
248
|
-
] = None,
|
|
249
|
-
on_mouse_down: Optional[
|
|
250
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
251
|
-
] = None,
|
|
252
|
-
on_mouse_enter: Optional[
|
|
253
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
254
|
-
] = None,
|
|
255
|
-
on_mouse_leave: Optional[
|
|
256
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
257
|
-
] = None,
|
|
258
|
-
on_mouse_move: Optional[
|
|
259
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
260
|
-
] = None,
|
|
261
|
-
on_mouse_out: Optional[
|
|
262
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
263
|
-
] = None,
|
|
264
|
-
on_mouse_over: Optional[
|
|
265
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
266
|
-
] = None,
|
|
267
|
-
on_mouse_up: Optional[
|
|
268
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
269
|
-
] = None,
|
|
270
|
-
on_scroll: Optional[
|
|
271
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
272
|
-
] = None,
|
|
273
|
-
on_unmount: Optional[
|
|
274
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
275
|
-
] = None,
|
|
276
|
-
**props,
|
|
277
|
-
) -> "MenuList":
|
|
278
|
-
"""Create a MenuList component, and automatically wrap in MenuItem if not already one.
|
|
279
|
-
|
|
280
|
-
Args:
|
|
281
|
-
*children: The children of the component.
|
|
282
|
-
items: A list of item to add as child of the component.
|
|
283
|
-
style: The style of the component.
|
|
284
|
-
key: A unique key for the component.
|
|
285
|
-
id: The id for the component.
|
|
286
|
-
class_name: The class name for the component.
|
|
287
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
288
|
-
custom_attrs: custom attribute
|
|
289
|
-
**props: The properties of the component.
|
|
290
|
-
|
|
291
|
-
Returns:
|
|
292
|
-
The MenuList component.
|
|
293
|
-
"""
|
|
294
|
-
...
|
|
295
|
-
|
|
296
|
-
class MenuItem(ChakraComponent):
|
|
297
|
-
@overload
|
|
298
|
-
@classmethod
|
|
299
|
-
def create( # type: ignore
|
|
300
|
-
cls,
|
|
301
|
-
*children,
|
|
302
|
-
close_on_select: Optional[Union[Var[bool], bool]] = None,
|
|
303
|
-
command: Optional[Union[Var[str], str]] = None,
|
|
304
|
-
command_spacing: Optional[Union[Var[int], int]] = None,
|
|
305
|
-
is_disabled: Optional[Union[Var[bool], bool]] = None,
|
|
306
|
-
is_focusable: Optional[Union[Var[bool], bool]] = None,
|
|
307
|
-
style: Optional[Style] = None,
|
|
308
|
-
key: Optional[Any] = None,
|
|
309
|
-
id: Optional[Any] = None,
|
|
310
|
-
class_name: Optional[Any] = None,
|
|
311
|
-
autofocus: Optional[bool] = None,
|
|
312
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
313
|
-
on_blur: Optional[
|
|
314
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
315
|
-
] = None,
|
|
316
|
-
on_click: Optional[
|
|
317
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
318
|
-
] = None,
|
|
319
|
-
on_context_menu: Optional[
|
|
320
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
321
|
-
] = None,
|
|
322
|
-
on_double_click: Optional[
|
|
323
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
324
|
-
] = None,
|
|
325
|
-
on_focus: Optional[
|
|
326
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
327
|
-
] = None,
|
|
328
|
-
on_mount: Optional[
|
|
329
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
330
|
-
] = None,
|
|
331
|
-
on_mouse_down: Optional[
|
|
332
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
333
|
-
] = None,
|
|
334
|
-
on_mouse_enter: Optional[
|
|
335
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
336
|
-
] = None,
|
|
337
|
-
on_mouse_leave: Optional[
|
|
338
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
339
|
-
] = None,
|
|
340
|
-
on_mouse_move: Optional[
|
|
341
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
342
|
-
] = None,
|
|
343
|
-
on_mouse_out: Optional[
|
|
344
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
345
|
-
] = None,
|
|
346
|
-
on_mouse_over: Optional[
|
|
347
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
348
|
-
] = None,
|
|
349
|
-
on_mouse_up: Optional[
|
|
350
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
351
|
-
] = None,
|
|
352
|
-
on_scroll: Optional[
|
|
353
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
354
|
-
] = None,
|
|
355
|
-
on_unmount: Optional[
|
|
356
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
357
|
-
] = None,
|
|
358
|
-
**props,
|
|
359
|
-
) -> "MenuItem":
|
|
360
|
-
"""Create the component.
|
|
361
|
-
|
|
362
|
-
Args:
|
|
363
|
-
*children: The children of the component.
|
|
364
|
-
close_on_select: Overrides the parent menu's closeOnSelect prop.
|
|
365
|
-
command: Right-aligned label text content, useful for displaying hotkeys.
|
|
366
|
-
command_spacing: The spacing between the command and menu item's label.
|
|
367
|
-
is_disabled: If true, the menuitem will be disabled.
|
|
368
|
-
is_focusable: If true and the menuitem is disabled, it'll remain keyboard-focusable
|
|
369
|
-
style: The style of the component.
|
|
370
|
-
key: A unique key for the component.
|
|
371
|
-
id: The id for the component.
|
|
372
|
-
class_name: The class name for the component.
|
|
373
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
374
|
-
custom_attrs: custom attribute
|
|
375
|
-
**props: The props of the component.
|
|
376
|
-
|
|
377
|
-
Returns:
|
|
378
|
-
The component.
|
|
379
|
-
"""
|
|
380
|
-
...
|
|
381
|
-
|
|
382
|
-
class MenuItemOption(ChakraComponent):
|
|
383
|
-
@overload
|
|
384
|
-
@classmethod
|
|
385
|
-
def create( # type: ignore
|
|
386
|
-
cls,
|
|
387
|
-
*children,
|
|
388
|
-
close_on_select: Optional[Union[Var[bool], bool]] = None,
|
|
389
|
-
command: Optional[Union[Var[str], str]] = None,
|
|
390
|
-
command_spacing: Optional[Union[Var[int], int]] = None,
|
|
391
|
-
is_checked: Optional[Union[Var[bool], bool]] = None,
|
|
392
|
-
is_disabled: Optional[Union[Var[bool], bool]] = None,
|
|
393
|
-
is_focusable: Optional[Union[Var[bool], bool]] = None,
|
|
394
|
-
type_: Optional[
|
|
395
|
-
Union[Var[Literal["checkbox", "radio"]], Literal["checkbox", "radio"]]
|
|
396
|
-
] = None,
|
|
397
|
-
value: Optional[Union[Var[str], str]] = None,
|
|
398
|
-
style: Optional[Style] = None,
|
|
399
|
-
key: Optional[Any] = None,
|
|
400
|
-
id: Optional[Any] = None,
|
|
401
|
-
class_name: Optional[Any] = None,
|
|
402
|
-
autofocus: Optional[bool] = None,
|
|
403
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
404
|
-
on_blur: Optional[
|
|
405
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
406
|
-
] = None,
|
|
407
|
-
on_click: Optional[
|
|
408
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
409
|
-
] = None,
|
|
410
|
-
on_context_menu: Optional[
|
|
411
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
412
|
-
] = None,
|
|
413
|
-
on_double_click: Optional[
|
|
414
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
415
|
-
] = None,
|
|
416
|
-
on_focus: Optional[
|
|
417
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
418
|
-
] = None,
|
|
419
|
-
on_mount: Optional[
|
|
420
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
421
|
-
] = None,
|
|
422
|
-
on_mouse_down: Optional[
|
|
423
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
424
|
-
] = None,
|
|
425
|
-
on_mouse_enter: Optional[
|
|
426
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
427
|
-
] = None,
|
|
428
|
-
on_mouse_leave: Optional[
|
|
429
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
430
|
-
] = None,
|
|
431
|
-
on_mouse_move: Optional[
|
|
432
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
433
|
-
] = None,
|
|
434
|
-
on_mouse_out: Optional[
|
|
435
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
436
|
-
] = None,
|
|
437
|
-
on_mouse_over: Optional[
|
|
438
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
439
|
-
] = None,
|
|
440
|
-
on_mouse_up: Optional[
|
|
441
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
442
|
-
] = None,
|
|
443
|
-
on_scroll: Optional[
|
|
444
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
445
|
-
] = None,
|
|
446
|
-
on_unmount: Optional[
|
|
447
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
448
|
-
] = None,
|
|
449
|
-
**props,
|
|
450
|
-
) -> "MenuItemOption":
|
|
451
|
-
"""Create the component.
|
|
452
|
-
|
|
453
|
-
Args:
|
|
454
|
-
*children: The children of the component.
|
|
455
|
-
close_on_select: Overrides the parent menu's closeOnSelect prop.
|
|
456
|
-
command: Right-aligned label text content, useful for displaying hotkeys.
|
|
457
|
-
command_spacing: The spacing between the command and menu item's label.
|
|
458
|
-
is_checked: Determines if menu item is checked.
|
|
459
|
-
is_disabled: If true, the menuitem will be disabled.
|
|
460
|
-
is_focusable: If true and the menuitem is disabled, it'll remain keyboard-focusable
|
|
461
|
-
type_: "checkbox" | "radio"
|
|
462
|
-
value: Value of the menu item.
|
|
463
|
-
style: The style of the component.
|
|
464
|
-
key: A unique key for the component.
|
|
465
|
-
id: The id for the component.
|
|
466
|
-
class_name: The class name for the component.
|
|
467
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
468
|
-
custom_attrs: custom attribute
|
|
469
|
-
**props: The props of the component.
|
|
470
|
-
|
|
471
|
-
Returns:
|
|
472
|
-
The component.
|
|
473
|
-
"""
|
|
474
|
-
...
|
|
475
|
-
|
|
476
|
-
class MenuGroup(ChakraComponent):
|
|
477
|
-
@overload
|
|
478
|
-
@classmethod
|
|
479
|
-
def create( # type: ignore
|
|
480
|
-
cls,
|
|
481
|
-
*children,
|
|
482
|
-
style: Optional[Style] = None,
|
|
483
|
-
key: Optional[Any] = None,
|
|
484
|
-
id: Optional[Any] = None,
|
|
485
|
-
class_name: Optional[Any] = None,
|
|
486
|
-
autofocus: Optional[bool] = None,
|
|
487
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
488
|
-
on_blur: Optional[
|
|
489
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
490
|
-
] = None,
|
|
491
|
-
on_click: Optional[
|
|
492
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
493
|
-
] = None,
|
|
494
|
-
on_context_menu: Optional[
|
|
495
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
496
|
-
] = None,
|
|
497
|
-
on_double_click: Optional[
|
|
498
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
499
|
-
] = None,
|
|
500
|
-
on_focus: Optional[
|
|
501
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
502
|
-
] = None,
|
|
503
|
-
on_mount: Optional[
|
|
504
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
505
|
-
] = None,
|
|
506
|
-
on_mouse_down: Optional[
|
|
507
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
508
|
-
] = None,
|
|
509
|
-
on_mouse_enter: Optional[
|
|
510
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
511
|
-
] = None,
|
|
512
|
-
on_mouse_leave: Optional[
|
|
513
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
514
|
-
] = None,
|
|
515
|
-
on_mouse_move: Optional[
|
|
516
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
517
|
-
] = None,
|
|
518
|
-
on_mouse_out: Optional[
|
|
519
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
520
|
-
] = None,
|
|
521
|
-
on_mouse_over: Optional[
|
|
522
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
523
|
-
] = None,
|
|
524
|
-
on_mouse_up: Optional[
|
|
525
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
526
|
-
] = None,
|
|
527
|
-
on_scroll: Optional[
|
|
528
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
529
|
-
] = None,
|
|
530
|
-
on_unmount: Optional[
|
|
531
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
532
|
-
] = None,
|
|
533
|
-
**props,
|
|
534
|
-
) -> "MenuGroup":
|
|
535
|
-
"""Create the component.
|
|
536
|
-
|
|
537
|
-
Args:
|
|
538
|
-
*children: The children of the component.
|
|
539
|
-
style: The style of the component.
|
|
540
|
-
key: A unique key for the component.
|
|
541
|
-
id: The id for the component.
|
|
542
|
-
class_name: The class name for the component.
|
|
543
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
544
|
-
custom_attrs: custom attribute
|
|
545
|
-
**props: The props of the component.
|
|
546
|
-
|
|
547
|
-
Returns:
|
|
548
|
-
The component.
|
|
549
|
-
"""
|
|
550
|
-
...
|
|
551
|
-
|
|
552
|
-
class MenuOptionGroup(ChakraComponent):
|
|
553
|
-
@overload
|
|
554
|
-
@classmethod
|
|
555
|
-
def create( # type: ignore
|
|
556
|
-
cls,
|
|
557
|
-
*children,
|
|
558
|
-
type_: Optional[
|
|
559
|
-
Union[Var[Literal["checkbox", "radio"]], Literal["checkbox", "radio"]]
|
|
560
|
-
] = None,
|
|
561
|
-
value: Optional[Union[Var[str], str]] = None,
|
|
562
|
-
style: Optional[Style] = None,
|
|
563
|
-
key: Optional[Any] = None,
|
|
564
|
-
id: Optional[Any] = None,
|
|
565
|
-
class_name: Optional[Any] = None,
|
|
566
|
-
autofocus: Optional[bool] = None,
|
|
567
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
568
|
-
on_blur: Optional[
|
|
569
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
570
|
-
] = None,
|
|
571
|
-
on_click: Optional[
|
|
572
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
573
|
-
] = None,
|
|
574
|
-
on_context_menu: Optional[
|
|
575
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
576
|
-
] = None,
|
|
577
|
-
on_double_click: Optional[
|
|
578
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
579
|
-
] = None,
|
|
580
|
-
on_focus: Optional[
|
|
581
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
582
|
-
] = None,
|
|
583
|
-
on_mount: Optional[
|
|
584
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
585
|
-
] = None,
|
|
586
|
-
on_mouse_down: Optional[
|
|
587
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
588
|
-
] = None,
|
|
589
|
-
on_mouse_enter: Optional[
|
|
590
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
591
|
-
] = None,
|
|
592
|
-
on_mouse_leave: Optional[
|
|
593
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
594
|
-
] = None,
|
|
595
|
-
on_mouse_move: Optional[
|
|
596
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
597
|
-
] = None,
|
|
598
|
-
on_mouse_out: Optional[
|
|
599
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
600
|
-
] = None,
|
|
601
|
-
on_mouse_over: Optional[
|
|
602
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
603
|
-
] = None,
|
|
604
|
-
on_mouse_up: Optional[
|
|
605
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
606
|
-
] = None,
|
|
607
|
-
on_scroll: Optional[
|
|
608
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
609
|
-
] = None,
|
|
610
|
-
on_unmount: Optional[
|
|
611
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
612
|
-
] = None,
|
|
613
|
-
**props,
|
|
614
|
-
) -> "MenuOptionGroup":
|
|
615
|
-
"""Create the component.
|
|
616
|
-
|
|
617
|
-
Args:
|
|
618
|
-
*children: The children of the component.
|
|
619
|
-
type_: "checkbox" | "radio"
|
|
620
|
-
value: Value of the option group.
|
|
621
|
-
style: The style of the component.
|
|
622
|
-
key: A unique key for the component.
|
|
623
|
-
id: The id for the component.
|
|
624
|
-
class_name: The class name for the component.
|
|
625
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
626
|
-
custom_attrs: custom attribute
|
|
627
|
-
**props: The props of the component.
|
|
628
|
-
|
|
629
|
-
Returns:
|
|
630
|
-
The component.
|
|
631
|
-
"""
|
|
632
|
-
...
|
|
633
|
-
|
|
634
|
-
class MenuDivider(ChakraComponent):
|
|
635
|
-
@overload
|
|
636
|
-
@classmethod
|
|
637
|
-
def create( # type: ignore
|
|
638
|
-
cls,
|
|
639
|
-
*children,
|
|
640
|
-
style: Optional[Style] = None,
|
|
641
|
-
key: Optional[Any] = None,
|
|
642
|
-
id: Optional[Any] = None,
|
|
643
|
-
class_name: Optional[Any] = None,
|
|
644
|
-
autofocus: Optional[bool] = None,
|
|
645
|
-
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
646
|
-
on_blur: Optional[
|
|
647
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
648
|
-
] = None,
|
|
649
|
-
on_click: Optional[
|
|
650
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
651
|
-
] = None,
|
|
652
|
-
on_context_menu: Optional[
|
|
653
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
654
|
-
] = None,
|
|
655
|
-
on_double_click: Optional[
|
|
656
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
657
|
-
] = None,
|
|
658
|
-
on_focus: Optional[
|
|
659
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
660
|
-
] = None,
|
|
661
|
-
on_mount: Optional[
|
|
662
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
663
|
-
] = None,
|
|
664
|
-
on_mouse_down: Optional[
|
|
665
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
666
|
-
] = None,
|
|
667
|
-
on_mouse_enter: Optional[
|
|
668
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
669
|
-
] = None,
|
|
670
|
-
on_mouse_leave: Optional[
|
|
671
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
672
|
-
] = None,
|
|
673
|
-
on_mouse_move: Optional[
|
|
674
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
675
|
-
] = None,
|
|
676
|
-
on_mouse_out: Optional[
|
|
677
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
678
|
-
] = None,
|
|
679
|
-
on_mouse_over: Optional[
|
|
680
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
681
|
-
] = None,
|
|
682
|
-
on_mouse_up: Optional[
|
|
683
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
684
|
-
] = None,
|
|
685
|
-
on_scroll: Optional[
|
|
686
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
687
|
-
] = None,
|
|
688
|
-
on_unmount: Optional[
|
|
689
|
-
Union[EventHandler, EventSpec, list, Callable, BaseVar]
|
|
690
|
-
] = None,
|
|
691
|
-
**props,
|
|
692
|
-
) -> "MenuDivider":
|
|
693
|
-
"""Create the component.
|
|
694
|
-
|
|
695
|
-
Args:
|
|
696
|
-
*children: The children of the component.
|
|
697
|
-
style: The style of the component.
|
|
698
|
-
key: A unique key for the component.
|
|
699
|
-
id: The id for the component.
|
|
700
|
-
class_name: The class name for the component.
|
|
701
|
-
autofocus: Whether the component should take the focus once the page is loaded
|
|
702
|
-
custom_attrs: custom attribute
|
|
703
|
-
**props: The props of the component.
|
|
704
|
-
|
|
705
|
-
Returns:
|
|
706
|
-
The component.
|
|
707
|
-
"""
|
|
708
|
-
...
|