reflex 0.6.8a1__py3-none-any.whl → 0.7.0__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/jinja/custom_components/pyproject.toml.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/_app.js.jinja2 +7 -7
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +3 -3
- reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +1 -4
- reflex/.templates/web/utils/state.js +65 -36
- reflex/__init__.py +4 -17
- reflex/__init__.pyi +1 -2
- reflex/app.py +286 -135
- reflex/app_mixins/lifespan.py +9 -9
- reflex/app_mixins/middleware.py +6 -6
- reflex/app_module_for_backend.py +3 -7
- reflex/base.py +7 -7
- reflex/compiler/compiler.py +8 -0
- reflex/compiler/utils.py +57 -18
- reflex/components/base/app_wrap.pyi +16 -16
- reflex/components/base/bare.py +1 -1
- reflex/components/base/body.pyi +16 -16
- reflex/components/base/document.pyi +76 -76
- reflex/components/base/error_boundary.py +2 -1
- reflex/components/base/error_boundary.pyi +19 -22
- reflex/components/base/fragment.pyi +16 -16
- reflex/components/base/head.pyi +31 -31
- reflex/components/base/link.pyi +31 -31
- reflex/components/base/meta.py +2 -2
- reflex/components/base/meta.pyi +61 -61
- reflex/components/base/script.pyi +19 -19
- reflex/components/base/strict_mode.py +10 -0
- reflex/components/base/strict_mode.pyi +57 -0
- reflex/components/component.py +38 -77
- reflex/components/core/banner.py +159 -4
- reflex/components/core/banner.pyi +162 -76
- reflex/components/core/breakpoints.py +3 -1
- reflex/components/core/client_side_routing.py +1 -1
- reflex/components/core/client_side_routing.pyi +32 -32
- reflex/components/core/clipboard.pyi +17 -20
- reflex/components/core/cond.py +9 -10
- reflex/components/core/debounce.py +1 -1
- reflex/components/core/debounce.pyi +17 -17
- reflex/components/core/foreach.py +28 -3
- reflex/components/core/html.py +1 -1
- reflex/components/core/html.pyi +16 -16
- reflex/components/core/match.py +5 -5
- reflex/components/core/sticky.py +134 -0
- reflex/components/core/sticky.pyi +449 -0
- reflex/components/core/upload.py +2 -2
- reflex/components/core/upload.pyi +80 -88
- reflex/components/datadisplay/code.py +5 -14
- reflex/components/datadisplay/code.pyi +31 -31
- reflex/components/datadisplay/dataeditor.py +7 -4
- reflex/components/datadisplay/dataeditor.pyi +40 -54
- reflex/components/datadisplay/logo.py +13 -8
- reflex/components/datadisplay/shiki_code_block.py +14 -9
- reflex/components/datadisplay/shiki_code_block.pyi +46 -46
- reflex/components/dynamic.py +22 -3
- reflex/components/el/constants/reflex.py +1 -1
- reflex/components/el/element.py +1 -1
- reflex/components/el/element.pyi +16 -16
- reflex/components/el/elements/base.pyi +16 -16
- reflex/components/el/elements/forms.py +4 -4
- reflex/components/el/elements/forms.pyi +224 -258
- reflex/components/el/elements/inline.pyi +421 -421
- reflex/components/el/elements/media.pyi +376 -376
- reflex/components/el/elements/metadata.pyi +91 -91
- reflex/components/el/elements/other.pyi +106 -106
- reflex/components/el/elements/scripts.pyi +46 -46
- reflex/components/el/elements/sectioning.pyi +226 -226
- reflex/components/el/elements/tables.pyi +151 -151
- reflex/components/el/elements/typography.pyi +226 -226
- reflex/components/gridjs/datatable.pyi +31 -31
- reflex/components/lucide/icon.py +46 -8
- reflex/components/lucide/icon.pyi +85 -31
- reflex/components/markdown/markdown.py +10 -8
- reflex/components/markdown/markdown.pyi +16 -16
- reflex/components/moment/moment.py +2 -2
- reflex/components/moment/moment.pyi +17 -19
- reflex/components/next/base.pyi +16 -16
- reflex/components/next/image.py +16 -4
- reflex/components/next/image.pyi +22 -20
- reflex/components/next/link.py +1 -1
- reflex/components/next/link.pyi +16 -16
- reflex/components/next/video.pyi +16 -16
- reflex/components/plotly/__init__.py +29 -2
- reflex/components/plotly/plotly.py +240 -5
- reflex/components/plotly/plotly.pyi +799 -44
- reflex/components/props.py +3 -3
- reflex/components/radix/__init__.pyi +1 -1
- reflex/components/radix/primitives/accordion.py +9 -5
- reflex/components/radix/primitives/accordion.pyi +110 -108
- reflex/components/radix/primitives/base.pyi +31 -31
- reflex/components/radix/primitives/drawer.py +5 -2
- reflex/components/radix/primitives/drawer.pyi +179 -187
- reflex/components/radix/primitives/form.pyi +160 -172
- reflex/components/radix/primitives/progress.py +1 -1
- reflex/components/radix/primitives/progress.pyi +76 -76
- reflex/components/radix/primitives/slider.py +1 -1
- reflex/components/radix/primitives/slider.pyi +78 -82
- reflex/components/radix/themes/base.pyi +121 -121
- reflex/components/radix/themes/color_mode.py +11 -9
- reflex/components/radix/themes/color_mode.pyi +47 -49
- reflex/components/radix/themes/components/alert_dialog.py +3 -0
- reflex/components/radix/themes/components/alert_dialog.pyi +110 -112
- reflex/components/radix/themes/components/aspect_ratio.pyi +16 -16
- reflex/components/radix/themes/components/avatar.pyi +16 -16
- reflex/components/radix/themes/components/badge.pyi +16 -16
- reflex/components/radix/themes/components/button.pyi +16 -16
- reflex/components/radix/themes/components/callout.pyi +76 -76
- reflex/components/radix/themes/components/card.py +1 -1
- reflex/components/radix/themes/components/card.pyi +17 -17
- reflex/components/radix/themes/components/checkbox.pyi +49 -55
- reflex/components/radix/themes/components/checkbox_cards.pyi +31 -31
- reflex/components/radix/themes/components/checkbox_group.pyi +31 -31
- reflex/components/radix/themes/components/context_menu.py +5 -0
- reflex/components/radix/themes/components/context_menu.pyi +149 -155
- reflex/components/radix/themes/components/data_list.pyi +61 -61
- reflex/components/radix/themes/components/dialog.py +3 -0
- reflex/components/radix/themes/components/dialog.pyi +113 -117
- reflex/components/radix/themes/components/dropdown_menu.py +5 -0
- reflex/components/radix/themes/components/dropdown_menu.pyi +133 -137
- reflex/components/radix/themes/components/hover_card.py +3 -0
- reflex/components/radix/themes/components/hover_card.pyi +63 -67
- reflex/components/radix/themes/components/icon_button.py +2 -2
- reflex/components/radix/themes/components/icon_button.pyi +17 -16
- reflex/components/radix/themes/components/inset.pyi +16 -16
- reflex/components/radix/themes/components/popover.py +3 -0
- reflex/components/radix/themes/components/popover.pyi +68 -70
- reflex/components/radix/themes/components/progress.pyi +16 -16
- reflex/components/radix/themes/components/radio.pyi +16 -16
- reflex/components/radix/themes/components/radio_cards.py +2 -0
- reflex/components/radix/themes/components/radio_cards.pyi +32 -34
- reflex/components/radix/themes/components/radio_group.py +1 -1
- reflex/components/radix/themes/components/radio_group.pyi +62 -64
- reflex/components/radix/themes/components/scroll_area.pyi +16 -16
- reflex/components/radix/themes/components/segmented_control.pyi +32 -35
- reflex/components/radix/themes/components/select.py +4 -0
- reflex/components/radix/themes/components/select.pyi +145 -157
- reflex/components/radix/themes/components/separator.pyi +16 -16
- reflex/components/radix/themes/components/skeleton.py +3 -0
- reflex/components/radix/themes/components/skeleton.pyi +16 -16
- reflex/components/radix/themes/components/slider.pyi +22 -28
- reflex/components/radix/themes/components/spinner.pyi +16 -16
- reflex/components/radix/themes/components/switch.pyi +17 -19
- reflex/components/radix/themes/components/table.pyi +106 -106
- reflex/components/radix/themes/components/tabs.py +3 -0
- reflex/components/radix/themes/components/tabs.pyi +78 -82
- reflex/components/radix/themes/components/text_area.py +12 -0
- reflex/components/radix/themes/components/text_area.pyi +21 -33
- reflex/components/radix/themes/components/text_field.py +1 -1
- reflex/components/radix/themes/components/text_field.pyi +52 -80
- reflex/components/radix/themes/components/tooltip.py +6 -1
- reflex/components/radix/themes/components/tooltip.pyi +20 -21
- reflex/components/radix/themes/layout/__init__.pyi +1 -1
- reflex/components/radix/themes/layout/base.pyi +16 -16
- reflex/components/radix/themes/layout/box.pyi +16 -16
- reflex/components/radix/themes/layout/center.pyi +16 -16
- reflex/components/radix/themes/layout/container.pyi +16 -16
- reflex/components/radix/themes/layout/flex.pyi +16 -16
- reflex/components/radix/themes/layout/grid.pyi +16 -16
- reflex/components/radix/themes/layout/list.py +2 -2
- reflex/components/radix/themes/layout/list.pyi +76 -76
- reflex/components/radix/themes/layout/section.pyi +16 -16
- reflex/components/radix/themes/layout/spacer.pyi +16 -16
- reflex/components/radix/themes/layout/stack.py +2 -2
- reflex/components/radix/themes/layout/stack.pyi +46 -46
- reflex/components/radix/themes/typography/blockquote.pyi +16 -16
- reflex/components/radix/themes/typography/code.pyi +16 -16
- reflex/components/radix/themes/typography/heading.pyi +16 -16
- reflex/components/radix/themes/typography/link.py +1 -1
- reflex/components/radix/themes/typography/link.pyi +16 -16
- reflex/components/radix/themes/typography/text.py +2 -2
- reflex/components/radix/themes/typography/text.pyi +106 -106
- reflex/components/react_player/audio.pyi +33 -39
- reflex/components/react_player/react_player.py +1 -1
- reflex/components/react_player/react_player.pyi +32 -38
- reflex/components/react_player/video.pyi +33 -39
- reflex/components/recharts/__init__.py +2 -0
- reflex/components/recharts/__init__.pyi +2 -0
- reflex/components/recharts/cartesian.pyi +282 -282
- reflex/components/recharts/charts.py +15 -15
- reflex/components/recharts/charts.pyi +164 -164
- reflex/components/recharts/general.py +19 -4
- reflex/components/recharts/general.pyi +132 -81
- reflex/components/recharts/polar.py +2 -2
- reflex/components/recharts/polar.pyi +55 -55
- reflex/components/recharts/recharts.py +4 -4
- reflex/components/recharts/recharts.pyi +31 -31
- reflex/components/sonner/toast.py +15 -13
- reflex/components/sonner/toast.pyi +22 -22
- reflex/components/suneditor/editor.py +6 -4
- reflex/components/suneditor/editor.pyi +26 -40
- reflex/components/tags/iter_tag.py +3 -3
- reflex/components/tags/tag.py +25 -3
- reflex/config.py +48 -20
- reflex/constants/__init__.py +1 -0
- reflex/constants/base.py +4 -1
- reflex/constants/compiler.py +5 -2
- reflex/constants/config.py +8 -1
- reflex/constants/installer.py +9 -9
- reflex/constants/style.py +1 -1
- reflex/custom_components/custom_components.py +18 -10
- reflex/event.py +228 -233
- reflex/experimental/__init__.py +19 -11
- reflex/experimental/client_state.py +53 -28
- reflex/experimental/hooks.py +5 -5
- reflex/experimental/layout.py +8 -5
- reflex/experimental/layout.pyi +79 -83
- reflex/experimental/misc.py +3 -3
- reflex/istate/wrappers.py +1 -1
- reflex/middleware/hydrate_middleware.py +2 -2
- reflex/model.py +11 -6
- reflex/page.py +5 -5
- reflex/reflex.py +104 -26
- reflex/route.py +1 -1
- reflex/state.py +358 -401
- reflex/style.py +27 -3
- reflex/testing.py +34 -39
- reflex/utils/build.py +6 -2
- reflex/utils/codespaces.py +1 -4
- reflex/utils/compat.py +6 -5
- reflex/utils/console.py +71 -21
- reflex/utils/exceptions.py +89 -26
- reflex/utils/exec.py +69 -74
- reflex/utils/export.py +6 -1
- reflex/utils/format.py +8 -40
- reflex/utils/imports.py +5 -2
- reflex/utils/lazy_loader.py +7 -1
- reflex/utils/path_ops.py +74 -14
- reflex/utils/prerequisites.py +345 -68
- reflex/utils/processes.py +45 -32
- reflex/utils/pyi_generator.py +39 -33
- reflex/utils/registry.py +4 -4
- reflex/utils/serializers.py +1 -1
- reflex/utils/telemetry.py +5 -4
- reflex/utils/types.py +42 -18
- reflex/vars/base.py +695 -330
- reflex/vars/datetime.py +6 -7
- reflex/vars/dep_tracking.py +344 -0
- reflex/vars/function.py +11 -5
- reflex/vars/number.py +31 -43
- reflex/vars/object.py +74 -64
- reflex/vars/sequence.py +79 -67
- {reflex-0.6.8a1.dist-info → reflex-0.7.0.dist-info}/METADATA +7 -10
- reflex-0.7.0.dist-info/RECORD +401 -0
- {reflex-0.6.8a1.dist-info → reflex-0.7.0.dist-info}/WHEEL +1 -1
- reflex/experimental/assets.py +0 -37
- reflex/proxy.py +0 -119
- reflex-0.6.8a1.dist-info/RECORD +0 -398
- {reflex-0.6.8a1.dist-info → reflex-0.7.0.dist-info}/LICENSE +0 -0
- {reflex-0.6.8a1.dist-info → reflex-0.7.0.dist-info}/entry_points.txt +0 -0
|
@@ -6,12 +6,13 @@
|
|
|
6
6
|
from typing import Any, Dict, Optional, Tuple, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
-
from reflex.event import
|
|
9
|
+
from reflex.event import EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
|
+
from reflex.vars.object import ObjectVar
|
|
12
13
|
|
|
13
14
|
def on_error_spec(
|
|
14
|
-
error:
|
|
15
|
+
error: ObjectVar[Dict[str, str]], info: ObjectVar[Dict[str, str]]
|
|
15
16
|
) -> Tuple[Var[str], Var[str]]: ...
|
|
16
17
|
|
|
17
18
|
class ErrorBoundary(Component):
|
|
@@ -27,28 +28,24 @@ class ErrorBoundary(Component):
|
|
|
27
28
|
class_name: Optional[Any] = None,
|
|
28
29
|
autofocus: Optional[bool] = None,
|
|
29
30
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
30
|
-
on_blur: Optional[EventType[
|
|
31
|
-
on_click: Optional[EventType[
|
|
32
|
-
on_context_menu: Optional[EventType[
|
|
33
|
-
on_double_click: Optional[EventType[
|
|
31
|
+
on_blur: Optional[EventType[()]] = None,
|
|
32
|
+
on_click: Optional[EventType[()]] = None,
|
|
33
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
34
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
34
35
|
on_error: Optional[
|
|
35
|
-
Union[
|
|
36
|
-
EventType[[], BASE_STATE],
|
|
37
|
-
EventType[[str], BASE_STATE],
|
|
38
|
-
EventType[[str, str], BASE_STATE],
|
|
39
|
-
]
|
|
36
|
+
Union[EventType[()], EventType[str], EventType[str, str]]
|
|
40
37
|
] = None,
|
|
41
|
-
on_focus: Optional[EventType[
|
|
42
|
-
on_mount: Optional[EventType[
|
|
43
|
-
on_mouse_down: Optional[EventType[
|
|
44
|
-
on_mouse_enter: Optional[EventType[
|
|
45
|
-
on_mouse_leave: Optional[EventType[
|
|
46
|
-
on_mouse_move: Optional[EventType[
|
|
47
|
-
on_mouse_out: Optional[EventType[
|
|
48
|
-
on_mouse_over: Optional[EventType[
|
|
49
|
-
on_mouse_up: Optional[EventType[
|
|
50
|
-
on_scroll: Optional[EventType[
|
|
51
|
-
on_unmount: Optional[EventType[
|
|
38
|
+
on_focus: Optional[EventType[()]] = None,
|
|
39
|
+
on_mount: Optional[EventType[()]] = None,
|
|
40
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
41
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
42
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
43
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
44
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
45
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
46
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
47
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
48
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
52
49
|
**props,
|
|
53
50
|
) -> "ErrorBoundary":
|
|
54
51
|
"""Create an ErrorBoundary component.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
-
from reflex.event import
|
|
9
|
+
from reflex.event import EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -22,21 +22,21 @@ class Fragment(Component):
|
|
|
22
22
|
class_name: Optional[Any] = None,
|
|
23
23
|
autofocus: Optional[bool] = None,
|
|
24
24
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
25
|
-
on_blur: Optional[EventType[
|
|
26
|
-
on_click: Optional[EventType[
|
|
27
|
-
on_context_menu: Optional[EventType[
|
|
28
|
-
on_double_click: Optional[EventType[
|
|
29
|
-
on_focus: Optional[EventType[
|
|
30
|
-
on_mount: Optional[EventType[
|
|
31
|
-
on_mouse_down: Optional[EventType[
|
|
32
|
-
on_mouse_enter: Optional[EventType[
|
|
33
|
-
on_mouse_leave: Optional[EventType[
|
|
34
|
-
on_mouse_move: Optional[EventType[
|
|
35
|
-
on_mouse_out: Optional[EventType[
|
|
36
|
-
on_mouse_over: Optional[EventType[
|
|
37
|
-
on_mouse_up: Optional[EventType[
|
|
38
|
-
on_scroll: Optional[EventType[
|
|
39
|
-
on_unmount: Optional[EventType[
|
|
25
|
+
on_blur: Optional[EventType[()]] = None,
|
|
26
|
+
on_click: Optional[EventType[()]] = None,
|
|
27
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
28
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
29
|
+
on_focus: Optional[EventType[()]] = None,
|
|
30
|
+
on_mount: Optional[EventType[()]] = None,
|
|
31
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
32
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
33
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
34
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
35
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
36
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
37
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
38
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
39
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
40
40
|
**props,
|
|
41
41
|
) -> "Fragment":
|
|
42
42
|
"""Create the component.
|
reflex/components/base/head.pyi
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component, MemoizationLeaf
|
|
9
|
-
from reflex.event import
|
|
9
|
+
from reflex.event import EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -22,21 +22,21 @@ class NextHeadLib(Component):
|
|
|
22
22
|
class_name: Optional[Any] = None,
|
|
23
23
|
autofocus: Optional[bool] = None,
|
|
24
24
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
25
|
-
on_blur: Optional[EventType[
|
|
26
|
-
on_click: Optional[EventType[
|
|
27
|
-
on_context_menu: Optional[EventType[
|
|
28
|
-
on_double_click: Optional[EventType[
|
|
29
|
-
on_focus: Optional[EventType[
|
|
30
|
-
on_mount: Optional[EventType[
|
|
31
|
-
on_mouse_down: Optional[EventType[
|
|
32
|
-
on_mouse_enter: Optional[EventType[
|
|
33
|
-
on_mouse_leave: Optional[EventType[
|
|
34
|
-
on_mouse_move: Optional[EventType[
|
|
35
|
-
on_mouse_out: Optional[EventType[
|
|
36
|
-
on_mouse_over: Optional[EventType[
|
|
37
|
-
on_mouse_up: Optional[EventType[
|
|
38
|
-
on_scroll: Optional[EventType[
|
|
39
|
-
on_unmount: Optional[EventType[
|
|
25
|
+
on_blur: Optional[EventType[()]] = None,
|
|
26
|
+
on_click: Optional[EventType[()]] = None,
|
|
27
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
28
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
29
|
+
on_focus: Optional[EventType[()]] = None,
|
|
30
|
+
on_mount: Optional[EventType[()]] = None,
|
|
31
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
32
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
33
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
34
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
35
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
36
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
37
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
38
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
39
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
40
40
|
**props,
|
|
41
41
|
) -> "NextHeadLib":
|
|
42
42
|
"""Create the component.
|
|
@@ -68,21 +68,21 @@ class Head(NextHeadLib, MemoizationLeaf):
|
|
|
68
68
|
class_name: Optional[Any] = None,
|
|
69
69
|
autofocus: Optional[bool] = None,
|
|
70
70
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
71
|
-
on_blur: Optional[EventType[
|
|
72
|
-
on_click: Optional[EventType[
|
|
73
|
-
on_context_menu: Optional[EventType[
|
|
74
|
-
on_double_click: Optional[EventType[
|
|
75
|
-
on_focus: Optional[EventType[
|
|
76
|
-
on_mount: Optional[EventType[
|
|
77
|
-
on_mouse_down: Optional[EventType[
|
|
78
|
-
on_mouse_enter: Optional[EventType[
|
|
79
|
-
on_mouse_leave: Optional[EventType[
|
|
80
|
-
on_mouse_move: Optional[EventType[
|
|
81
|
-
on_mouse_out: Optional[EventType[
|
|
82
|
-
on_mouse_over: Optional[EventType[
|
|
83
|
-
on_mouse_up: Optional[EventType[
|
|
84
|
-
on_scroll: Optional[EventType[
|
|
85
|
-
on_unmount: Optional[EventType[
|
|
71
|
+
on_blur: Optional[EventType[()]] = None,
|
|
72
|
+
on_click: Optional[EventType[()]] = None,
|
|
73
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
74
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
75
|
+
on_focus: Optional[EventType[()]] = None,
|
|
76
|
+
on_mount: Optional[EventType[()]] = None,
|
|
77
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
78
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
79
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
80
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
81
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
82
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
83
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
84
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
85
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
86
86
|
**props,
|
|
87
87
|
) -> "Head":
|
|
88
88
|
"""Create a new memoization leaf component.
|
reflex/components/base/link.pyi
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
-
from reflex.event import
|
|
9
|
+
from reflex.event import EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -24,21 +24,21 @@ class RawLink(Component):
|
|
|
24
24
|
class_name: Optional[Any] = None,
|
|
25
25
|
autofocus: Optional[bool] = None,
|
|
26
26
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
27
|
-
on_blur: Optional[EventType[
|
|
28
|
-
on_click: Optional[EventType[
|
|
29
|
-
on_context_menu: Optional[EventType[
|
|
30
|
-
on_double_click: Optional[EventType[
|
|
31
|
-
on_focus: Optional[EventType[
|
|
32
|
-
on_mount: Optional[EventType[
|
|
33
|
-
on_mouse_down: Optional[EventType[
|
|
34
|
-
on_mouse_enter: Optional[EventType[
|
|
35
|
-
on_mouse_leave: Optional[EventType[
|
|
36
|
-
on_mouse_move: Optional[EventType[
|
|
37
|
-
on_mouse_out: Optional[EventType[
|
|
38
|
-
on_mouse_over: Optional[EventType[
|
|
39
|
-
on_mouse_up: Optional[EventType[
|
|
40
|
-
on_scroll: Optional[EventType[
|
|
41
|
-
on_unmount: Optional[EventType[
|
|
27
|
+
on_blur: Optional[EventType[()]] = None,
|
|
28
|
+
on_click: Optional[EventType[()]] = None,
|
|
29
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
30
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
31
|
+
on_focus: Optional[EventType[()]] = None,
|
|
32
|
+
on_mount: Optional[EventType[()]] = None,
|
|
33
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
34
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
35
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
36
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
37
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
38
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
39
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
40
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
41
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
42
42
|
**props,
|
|
43
43
|
) -> "RawLink":
|
|
44
44
|
"""Create the component.
|
|
@@ -79,21 +79,21 @@ class ScriptTag(Component):
|
|
|
79
79
|
class_name: Optional[Any] = None,
|
|
80
80
|
autofocus: Optional[bool] = None,
|
|
81
81
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
82
|
-
on_blur: Optional[EventType[
|
|
83
|
-
on_click: Optional[EventType[
|
|
84
|
-
on_context_menu: Optional[EventType[
|
|
85
|
-
on_double_click: Optional[EventType[
|
|
86
|
-
on_focus: Optional[EventType[
|
|
87
|
-
on_mount: Optional[EventType[
|
|
88
|
-
on_mouse_down: Optional[EventType[
|
|
89
|
-
on_mouse_enter: Optional[EventType[
|
|
90
|
-
on_mouse_leave: Optional[EventType[
|
|
91
|
-
on_mouse_move: Optional[EventType[
|
|
92
|
-
on_mouse_out: Optional[EventType[
|
|
93
|
-
on_mouse_over: Optional[EventType[
|
|
94
|
-
on_mouse_up: Optional[EventType[
|
|
95
|
-
on_scroll: Optional[EventType[
|
|
96
|
-
on_unmount: Optional[EventType[
|
|
82
|
+
on_blur: Optional[EventType[()]] = None,
|
|
83
|
+
on_click: Optional[EventType[()]] = None,
|
|
84
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
85
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
86
|
+
on_focus: Optional[EventType[()]] = None,
|
|
87
|
+
on_mount: Optional[EventType[()]] = None,
|
|
88
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
89
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
90
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
91
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
92
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
93
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
94
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
95
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
96
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
97
97
|
**props,
|
|
98
98
|
) -> "ScriptTag":
|
|
99
99
|
"""Create the component.
|
reflex/components/base/meta.py
CHANGED
|
@@ -53,11 +53,11 @@ class Description(Meta):
|
|
|
53
53
|
"""A component that displays the title of the current page."""
|
|
54
54
|
|
|
55
55
|
# The type of the description.
|
|
56
|
-
name: str = "description"
|
|
56
|
+
name: str | None = "description"
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
class Image(Meta):
|
|
60
60
|
"""A component that displays the title of the current page."""
|
|
61
61
|
|
|
62
62
|
# The type of the image.
|
|
63
|
-
property: str = "og:image"
|
|
63
|
+
property: str | None = "og:image"
|
reflex/components/base/meta.pyi
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
-
from reflex.event import
|
|
9
|
+
from reflex.event import EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -23,21 +23,21 @@ class Title(Component):
|
|
|
23
23
|
class_name: Optional[Any] = None,
|
|
24
24
|
autofocus: Optional[bool] = None,
|
|
25
25
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
26
|
-
on_blur: Optional[EventType[
|
|
27
|
-
on_click: Optional[EventType[
|
|
28
|
-
on_context_menu: Optional[EventType[
|
|
29
|
-
on_double_click: Optional[EventType[
|
|
30
|
-
on_focus: Optional[EventType[
|
|
31
|
-
on_mount: Optional[EventType[
|
|
32
|
-
on_mouse_down: Optional[EventType[
|
|
33
|
-
on_mouse_enter: Optional[EventType[
|
|
34
|
-
on_mouse_leave: Optional[EventType[
|
|
35
|
-
on_mouse_move: Optional[EventType[
|
|
36
|
-
on_mouse_out: Optional[EventType[
|
|
37
|
-
on_mouse_over: Optional[EventType[
|
|
38
|
-
on_mouse_up: Optional[EventType[
|
|
39
|
-
on_scroll: Optional[EventType[
|
|
40
|
-
on_unmount: Optional[EventType[
|
|
26
|
+
on_blur: Optional[EventType[()]] = None,
|
|
27
|
+
on_click: Optional[EventType[()]] = None,
|
|
28
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
29
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
30
|
+
on_focus: Optional[EventType[()]] = None,
|
|
31
|
+
on_mount: Optional[EventType[()]] = None,
|
|
32
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
33
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
34
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
35
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
36
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
37
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
38
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
39
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
40
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
41
41
|
**props,
|
|
42
42
|
) -> "Title":
|
|
43
43
|
"""Create the component.
|
|
@@ -74,21 +74,21 @@ class Meta(Component):
|
|
|
74
74
|
class_name: Optional[Any] = None,
|
|
75
75
|
autofocus: Optional[bool] = None,
|
|
76
76
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
77
|
-
on_blur: Optional[EventType[
|
|
78
|
-
on_click: Optional[EventType[
|
|
79
|
-
on_context_menu: Optional[EventType[
|
|
80
|
-
on_double_click: Optional[EventType[
|
|
81
|
-
on_focus: Optional[EventType[
|
|
82
|
-
on_mount: Optional[EventType[
|
|
83
|
-
on_mouse_down: Optional[EventType[
|
|
84
|
-
on_mouse_enter: Optional[EventType[
|
|
85
|
-
on_mouse_leave: Optional[EventType[
|
|
86
|
-
on_mouse_move: Optional[EventType[
|
|
87
|
-
on_mouse_out: Optional[EventType[
|
|
88
|
-
on_mouse_over: Optional[EventType[
|
|
89
|
-
on_mouse_up: Optional[EventType[
|
|
90
|
-
on_scroll: Optional[EventType[
|
|
91
|
-
on_unmount: Optional[EventType[
|
|
77
|
+
on_blur: Optional[EventType[()]] = None,
|
|
78
|
+
on_click: Optional[EventType[()]] = None,
|
|
79
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
80
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
81
|
+
on_focus: Optional[EventType[()]] = None,
|
|
82
|
+
on_mount: Optional[EventType[()]] = None,
|
|
83
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
84
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
85
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
86
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
87
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
88
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
89
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
90
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
91
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
92
92
|
**props,
|
|
93
93
|
) -> "Meta":
|
|
94
94
|
"""Create the component.
|
|
@@ -130,21 +130,21 @@ class Description(Meta):
|
|
|
130
130
|
class_name: Optional[Any] = None,
|
|
131
131
|
autofocus: Optional[bool] = None,
|
|
132
132
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
133
|
-
on_blur: Optional[EventType[
|
|
134
|
-
on_click: Optional[EventType[
|
|
135
|
-
on_context_menu: Optional[EventType[
|
|
136
|
-
on_double_click: Optional[EventType[
|
|
137
|
-
on_focus: Optional[EventType[
|
|
138
|
-
on_mount: Optional[EventType[
|
|
139
|
-
on_mouse_down: Optional[EventType[
|
|
140
|
-
on_mouse_enter: Optional[EventType[
|
|
141
|
-
on_mouse_leave: Optional[EventType[
|
|
142
|
-
on_mouse_move: Optional[EventType[
|
|
143
|
-
on_mouse_out: Optional[EventType[
|
|
144
|
-
on_mouse_over: Optional[EventType[
|
|
145
|
-
on_mouse_up: Optional[EventType[
|
|
146
|
-
on_scroll: Optional[EventType[
|
|
147
|
-
on_unmount: Optional[EventType[
|
|
133
|
+
on_blur: Optional[EventType[()]] = None,
|
|
134
|
+
on_click: Optional[EventType[()]] = None,
|
|
135
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
136
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
137
|
+
on_focus: Optional[EventType[()]] = None,
|
|
138
|
+
on_mount: Optional[EventType[()]] = None,
|
|
139
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
140
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
141
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
142
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
143
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
144
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
145
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
146
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
147
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
148
148
|
**props,
|
|
149
149
|
) -> "Description":
|
|
150
150
|
"""Create the component.
|
|
@@ -186,21 +186,21 @@ class Image(Meta):
|
|
|
186
186
|
class_name: Optional[Any] = None,
|
|
187
187
|
autofocus: Optional[bool] = None,
|
|
188
188
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
189
|
-
on_blur: Optional[EventType[
|
|
190
|
-
on_click: Optional[EventType[
|
|
191
|
-
on_context_menu: Optional[EventType[
|
|
192
|
-
on_double_click: Optional[EventType[
|
|
193
|
-
on_focus: Optional[EventType[
|
|
194
|
-
on_mount: Optional[EventType[
|
|
195
|
-
on_mouse_down: Optional[EventType[
|
|
196
|
-
on_mouse_enter: Optional[EventType[
|
|
197
|
-
on_mouse_leave: Optional[EventType[
|
|
198
|
-
on_mouse_move: Optional[EventType[
|
|
199
|
-
on_mouse_out: Optional[EventType[
|
|
200
|
-
on_mouse_over: Optional[EventType[
|
|
201
|
-
on_mouse_up: Optional[EventType[
|
|
202
|
-
on_scroll: Optional[EventType[
|
|
203
|
-
on_unmount: Optional[EventType[
|
|
189
|
+
on_blur: Optional[EventType[()]] = None,
|
|
190
|
+
on_click: Optional[EventType[()]] = None,
|
|
191
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
192
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
193
|
+
on_focus: Optional[EventType[()]] = None,
|
|
194
|
+
on_mount: Optional[EventType[()]] = None,
|
|
195
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
196
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
197
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
198
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
199
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
200
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
201
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
202
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
203
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
204
204
|
**props,
|
|
205
205
|
) -> "Image":
|
|
206
206
|
"""Create the component.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
from typing import Any, Dict, Literal, Optional, Union, overload
|
|
7
7
|
|
|
8
8
|
from reflex.components.component import Component
|
|
9
|
-
from reflex.event import
|
|
9
|
+
from reflex.event import EventType
|
|
10
10
|
from reflex.style import Style
|
|
11
11
|
from reflex.vars.base import Var
|
|
12
12
|
|
|
@@ -29,24 +29,24 @@ class Script(Component):
|
|
|
29
29
|
class_name: Optional[Any] = None,
|
|
30
30
|
autofocus: Optional[bool] = None,
|
|
31
31
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
32
|
-
on_blur: Optional[EventType[
|
|
33
|
-
on_click: Optional[EventType[
|
|
34
|
-
on_context_menu: Optional[EventType[
|
|
35
|
-
on_double_click: Optional[EventType[
|
|
36
|
-
on_error: Optional[EventType[
|
|
37
|
-
on_focus: Optional[EventType[
|
|
38
|
-
on_load: Optional[EventType[
|
|
39
|
-
on_mount: Optional[EventType[
|
|
40
|
-
on_mouse_down: Optional[EventType[
|
|
41
|
-
on_mouse_enter: Optional[EventType[
|
|
42
|
-
on_mouse_leave: Optional[EventType[
|
|
43
|
-
on_mouse_move: Optional[EventType[
|
|
44
|
-
on_mouse_out: Optional[EventType[
|
|
45
|
-
on_mouse_over: Optional[EventType[
|
|
46
|
-
on_mouse_up: Optional[EventType[
|
|
47
|
-
on_ready: Optional[EventType[
|
|
48
|
-
on_scroll: Optional[EventType[
|
|
49
|
-
on_unmount: Optional[EventType[
|
|
32
|
+
on_blur: Optional[EventType[()]] = None,
|
|
33
|
+
on_click: Optional[EventType[()]] = None,
|
|
34
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
35
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
36
|
+
on_error: Optional[EventType[()]] = None,
|
|
37
|
+
on_focus: Optional[EventType[()]] = None,
|
|
38
|
+
on_load: Optional[EventType[()]] = None,
|
|
39
|
+
on_mount: Optional[EventType[()]] = None,
|
|
40
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
41
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
42
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
43
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
44
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
45
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
46
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
47
|
+
on_ready: Optional[EventType[()]] = None,
|
|
48
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
49
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
50
50
|
**props,
|
|
51
51
|
) -> "Script":
|
|
52
52
|
"""Create an inline or user-defined script.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"""Stub file for reflex/components/base/strict_mode.py"""
|
|
2
|
+
|
|
3
|
+
# ------------------- DO NOT EDIT ----------------------
|
|
4
|
+
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
|
+
# ------------------------------------------------------
|
|
6
|
+
from typing import Any, Dict, Optional, Union, overload
|
|
7
|
+
|
|
8
|
+
from reflex.components.component import Component
|
|
9
|
+
from reflex.event import EventType
|
|
10
|
+
from reflex.style import Style
|
|
11
|
+
from reflex.vars.base import Var
|
|
12
|
+
|
|
13
|
+
class StrictMode(Component):
|
|
14
|
+
@overload
|
|
15
|
+
@classmethod
|
|
16
|
+
def create( # type: ignore
|
|
17
|
+
cls,
|
|
18
|
+
*children,
|
|
19
|
+
style: Optional[Style] = None,
|
|
20
|
+
key: Optional[Any] = None,
|
|
21
|
+
id: Optional[Any] = None,
|
|
22
|
+
class_name: Optional[Any] = None,
|
|
23
|
+
autofocus: Optional[bool] = None,
|
|
24
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
25
|
+
on_blur: Optional[EventType[()]] = None,
|
|
26
|
+
on_click: Optional[EventType[()]] = None,
|
|
27
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
28
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
29
|
+
on_focus: Optional[EventType[()]] = None,
|
|
30
|
+
on_mount: Optional[EventType[()]] = None,
|
|
31
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
32
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
33
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
34
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
35
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
36
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
37
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
38
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
39
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
40
|
+
**props,
|
|
41
|
+
) -> "StrictMode":
|
|
42
|
+
"""Create the component.
|
|
43
|
+
|
|
44
|
+
Args:
|
|
45
|
+
*children: The children of the component.
|
|
46
|
+
style: The style of the component.
|
|
47
|
+
key: A unique key for the component.
|
|
48
|
+
id: The id for the component.
|
|
49
|
+
class_name: The class name for the component.
|
|
50
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
51
|
+
custom_attrs: custom attribute
|
|
52
|
+
**props: The props of the component.
|
|
53
|
+
|
|
54
|
+
Returns:
|
|
55
|
+
The component.
|
|
56
|
+
"""
|
|
57
|
+
...
|