reflex 0.3.5a4__py3-none-any.whl → 0.3.7__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/web/pages/base_page.js.jinja2 +2 -0
- reflex/.templates/web/utils/state.js +1 -1
- reflex/__init__.py +29 -6
- reflex/__init__.pyi +2 -0
- reflex/app.py +3 -0
- reflex/components/__init__.py +2 -0
- reflex/components/chakra/__init__.py +23 -0
- reflex/components/{media → chakra/media}/image.py +1 -28
- reflex/components/chakra/media/image.pyi +120 -0
- reflex/components/component.py +32 -4
- reflex/components/datadisplay/datatable.py +1 -37
- reflex/components/datadisplay/datatable.pyi +1 -11
- reflex/components/el/elements/forms.py +43 -1
- reflex/components/el/elements/forms.pyi +26 -1
- reflex/components/graphing/plotly.py +0 -22
- reflex/components/graphing/plotly.pyi +0 -12
- reflex/components/media/__init__.py +0 -1
- reflex/components/media/image.pyi +0 -9
- reflex/components/next/__init__.py +8 -0
- reflex/components/next/base.py +8 -0
- reflex/components/next/base.pyi +91 -0
- reflex/components/next/image.py +114 -0
- reflex/components/next/image.pyi +122 -0
- reflex/components/next/video.py +33 -0
- reflex/components/next/video.pyi +92 -0
- reflex/components/radix/primitives/__init__.py +3 -0
- reflex/components/radix/primitives/accordion.py +279 -0
- reflex/components/radix/primitives/accordion.pyi +619 -0
- reflex/components/radix/themes/__init__.py +4 -73
- reflex/components/radix/themes/base.py +7 -7
- reflex/components/radix/themes/base.pyi +21 -21
- reflex/components/radix/themes/components/__init__.py +193 -0
- reflex/components/radix/themes/components/alertdialog.py +72 -0
- reflex/components/radix/themes/components/alertdialog.pyi +733 -0
- reflex/components/radix/themes/components/aspectratio.py +20 -0
- reflex/components/radix/themes/components/aspectratio.pyi +144 -0
- reflex/components/radix/themes/components/avatar.py +38 -0
- reflex/components/radix/themes/components/avatar.pyi +233 -0
- reflex/components/radix/themes/components/badge.py +38 -0
- reflex/components/radix/themes/components/badge.pyi +291 -0
- reflex/components/radix/themes/components/button.py +39 -0
- reflex/components/radix/themes/components/button.pyi +330 -0
- reflex/components/radix/themes/components/callout.py +49 -0
- reflex/components/radix/themes/components/callout.pyi +668 -0
- reflex/components/radix/themes/components/card.py +25 -0
- reflex/components/radix/themes/components/card.pyi +214 -0
- reflex/components/radix/themes/components/checkbox.py +67 -0
- reflex/components/radix/themes/components/checkbox.pyi +249 -0
- reflex/components/radix/themes/components/contextmenu.py +134 -0
- reflex/components/radix/themes/{typography.pyi → components/contextmenu.pyi} +182 -602
- reflex/components/radix/themes/components/dialog.py +75 -0
- reflex/components/radix/themes/components/dialog.pyi +739 -0
- reflex/components/radix/themes/components/dropdownmenu.py +101 -0
- reflex/components/radix/themes/components/dropdownmenu.pyi +1065 -0
- reflex/components/radix/themes/components/hovercard.py +63 -0
- reflex/components/radix/themes/components/hovercard.pyi +487 -0
- reflex/components/radix/themes/components/iconbutton.py +39 -0
- reflex/components/radix/themes/components/iconbutton.pyi +332 -0
- reflex/components/radix/themes/components/icons.py +400 -0
- reflex/components/radix/themes/components/icons.pyi +185 -0
- reflex/components/radix/themes/components/inset.py +44 -0
- reflex/components/radix/themes/components/inset.pyi +230 -0
- reflex/components/radix/themes/components/popover.py +85 -0
- reflex/components/radix/themes/components/popover.pyi +634 -0
- reflex/components/radix/themes/components/radiogroup.py +72 -0
- reflex/components/radix/themes/components/radiogroup.pyi +369 -0
- reflex/components/radix/themes/components/scrollarea.py +31 -0
- reflex/components/radix/themes/components/scrollarea.pyi +165 -0
- reflex/components/radix/themes/components/select.py +137 -0
- reflex/components/radix/themes/{layout.pyi → components/select.pyi} +422 -418
- reflex/components/radix/themes/components/separator.py +30 -0
- reflex/components/radix/themes/components/separator.pyi +218 -0
- reflex/components/radix/themes/components/slider.py +68 -0
- reflex/components/radix/themes/components/slider.pyi +254 -0
- reflex/components/radix/themes/components/switch.py +68 -0
- reflex/components/radix/themes/components/switch.pyi +250 -0
- reflex/components/radix/themes/components/table.py +79 -0
- reflex/components/radix/themes/components/table.pyi +1485 -0
- reflex/components/radix/themes/components/tabs.py +65 -0
- reflex/components/radix/themes/components/tabs.pyi +549 -0
- reflex/components/radix/themes/components/textarea.py +68 -0
- reflex/components/radix/themes/components/textarea.pyi +333 -0
- reflex/components/radix/themes/{components.py → components/textfield.py} +3 -87
- reflex/components/radix/themes/{components.pyi → components/textfield.pyi} +202 -591
- reflex/components/radix/themes/layout/__init__.py +13 -0
- reflex/components/radix/themes/layout/base.py +48 -0
- reflex/components/radix/themes/layout/base.pyi +195 -0
- reflex/components/radix/themes/layout/box.py +12 -0
- reflex/components/radix/themes/layout/box.pyi +252 -0
- reflex/components/radix/themes/layout/container.py +23 -0
- reflex/components/radix/themes/layout/container.pyi +260 -0
- reflex/components/radix/themes/layout/flex.py +45 -0
- reflex/components/radix/themes/layout/flex.pyi +303 -0
- reflex/components/radix/themes/layout/grid.py +53 -0
- reflex/components/radix/themes/layout/grid.pyi +203 -0
- reflex/components/radix/themes/layout/section.py +20 -0
- reflex/components/radix/themes/layout/section.pyi +260 -0
- reflex/components/radix/themes/typography/__init__.py +21 -0
- reflex/components/radix/themes/typography/base.py +12 -0
- reflex/components/radix/themes/typography/blockquote.py +36 -0
- reflex/components/radix/themes/typography/blockquote.pyi +282 -0
- reflex/components/radix/themes/typography/code.py +40 -0
- reflex/components/radix/themes/typography/code.pyi +292 -0
- reflex/components/radix/themes/typography/em.py +18 -0
- reflex/components/radix/themes/typography/em.pyi +199 -0
- reflex/components/radix/themes/typography/heading.py +50 -0
- reflex/components/radix/themes/typography/heading.pyi +298 -0
- reflex/components/radix/themes/typography/kbd.py +25 -0
- reflex/components/radix/themes/typography/kbd.pyi +208 -0
- reflex/components/radix/themes/typography/link.py +49 -0
- reflex/components/radix/themes/typography/link.pyi +238 -0
- reflex/components/radix/themes/typography/quote.py +18 -0
- reflex/components/radix/themes/typography/quote.pyi +200 -0
- reflex/components/radix/themes/typography/strong.py +18 -0
- reflex/components/radix/themes/typography/strong.pyi +199 -0
- reflex/components/radix/themes/typography/text.py +50 -0
- reflex/components/radix/themes/typography/text.pyi +298 -0
- reflex/components/radix/themes/typography.py +1 -1
- reflex/constants/__init__.py +1 -0
- reflex/constants/base.py +7 -0
- reflex/constants/config.py +1 -1
- reflex/model.py +2 -1
- reflex/reflex.py +8 -1
- reflex/state.py +11 -0
- reflex/style.py +120 -10
- reflex/testing.py +4 -4
- reflex/utils/format.py +9 -5
- reflex/utils/prerequisites.py +49 -6
- reflex/utils/processes.py +8 -1
- reflex/utils/serializers.py +83 -0
- reflex/utils/types.py +22 -1
- reflex/vars.py +24 -1
- {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/METADATA +3 -2
- {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/RECORD +137 -44
- reflex/components/radix/themes/layout.py +0 -155
- {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/LICENSE +0 -0
- {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/WHEEL +0 -0
- {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
"""Stub file for reflex/components/radix/themes/components/switch.py"""
|
|
2
|
+
# ------------------- DO NOT EDIT ----------------------
|
|
3
|
+
# This file was generated by `scripts/pyi_generator.py`!
|
|
4
|
+
# ------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
from typing import Any, Dict, Literal, Optional, Union, overload
|
|
7
|
+
from reflex.vars import Var, BaseVar, ComputedVar
|
|
8
|
+
from reflex.event import EventChain, EventHandler, EventSpec
|
|
9
|
+
from reflex.style import Style
|
|
10
|
+
from typing import Any, Dict, Literal
|
|
11
|
+
from reflex.constants import EventTriggers
|
|
12
|
+
from reflex.vars import Var
|
|
13
|
+
from ..base import (
|
|
14
|
+
CommonMarginProps,
|
|
15
|
+
LiteralAccentColor,
|
|
16
|
+
LiteralRadius,
|
|
17
|
+
LiteralVariant,
|
|
18
|
+
RadixThemesComponent,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
LiteralSwitchSize = Literal["1", "2", "3", "4"]
|
|
22
|
+
|
|
23
|
+
class Switch(CommonMarginProps, RadixThemesComponent):
|
|
24
|
+
def get_event_triggers(self) -> Dict[str, Any]: ...
|
|
25
|
+
@overload
|
|
26
|
+
@classmethod
|
|
27
|
+
def create( # type: ignore
|
|
28
|
+
cls,
|
|
29
|
+
*children,
|
|
30
|
+
as_child: Optional[Union[Var[bool], bool]] = None,
|
|
31
|
+
default_checked: Optional[Union[Var[bool], bool]] = None,
|
|
32
|
+
checked: Optional[Union[Var[bool], bool]] = None,
|
|
33
|
+
disabled: Optional[Union[Var[bool], bool]] = None,
|
|
34
|
+
required: Optional[Union[Var[bool], bool]] = None,
|
|
35
|
+
name: Optional[Union[Var[str], str]] = None,
|
|
36
|
+
value: Optional[Union[Var[str], str]] = None,
|
|
37
|
+
size: Optional[
|
|
38
|
+
Union[Var[Literal["1", "2", "3", "4"]], Literal["1", "2", "3", "4"]]
|
|
39
|
+
] = None,
|
|
40
|
+
variant: Optional[
|
|
41
|
+
Union[
|
|
42
|
+
Var[Literal["classic", "solid", "soft", "surface", "outline", "ghost"]],
|
|
43
|
+
Literal["classic", "solid", "soft", "surface", "outline", "ghost"],
|
|
44
|
+
]
|
|
45
|
+
] = None,
|
|
46
|
+
color: Optional[
|
|
47
|
+
Union[
|
|
48
|
+
Var[
|
|
49
|
+
Literal[
|
|
50
|
+
"tomato",
|
|
51
|
+
"red",
|
|
52
|
+
"ruby",
|
|
53
|
+
"crimson",
|
|
54
|
+
"pink",
|
|
55
|
+
"plum",
|
|
56
|
+
"purple",
|
|
57
|
+
"violet",
|
|
58
|
+
"iris",
|
|
59
|
+
"indigo",
|
|
60
|
+
"blue",
|
|
61
|
+
"cyan",
|
|
62
|
+
"teal",
|
|
63
|
+
"jade",
|
|
64
|
+
"green",
|
|
65
|
+
"grass",
|
|
66
|
+
"brown",
|
|
67
|
+
"orange",
|
|
68
|
+
"sky",
|
|
69
|
+
"mint",
|
|
70
|
+
"lime",
|
|
71
|
+
"yellow",
|
|
72
|
+
"amber",
|
|
73
|
+
"gold",
|
|
74
|
+
"bronze",
|
|
75
|
+
"gray",
|
|
76
|
+
]
|
|
77
|
+
],
|
|
78
|
+
Literal[
|
|
79
|
+
"tomato",
|
|
80
|
+
"red",
|
|
81
|
+
"ruby",
|
|
82
|
+
"crimson",
|
|
83
|
+
"pink",
|
|
84
|
+
"plum",
|
|
85
|
+
"purple",
|
|
86
|
+
"violet",
|
|
87
|
+
"iris",
|
|
88
|
+
"indigo",
|
|
89
|
+
"blue",
|
|
90
|
+
"cyan",
|
|
91
|
+
"teal",
|
|
92
|
+
"jade",
|
|
93
|
+
"green",
|
|
94
|
+
"grass",
|
|
95
|
+
"brown",
|
|
96
|
+
"orange",
|
|
97
|
+
"sky",
|
|
98
|
+
"mint",
|
|
99
|
+
"lime",
|
|
100
|
+
"yellow",
|
|
101
|
+
"amber",
|
|
102
|
+
"gold",
|
|
103
|
+
"bronze",
|
|
104
|
+
"gray",
|
|
105
|
+
],
|
|
106
|
+
]
|
|
107
|
+
] = None,
|
|
108
|
+
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
|
109
|
+
radius: Optional[
|
|
110
|
+
Union[
|
|
111
|
+
Var[Literal["none", "small", "medium", "large", "full"]],
|
|
112
|
+
Literal["none", "small", "medium", "large", "full"],
|
|
113
|
+
]
|
|
114
|
+
] = None,
|
|
115
|
+
m: Optional[
|
|
116
|
+
Union[
|
|
117
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
118
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
119
|
+
]
|
|
120
|
+
] = None,
|
|
121
|
+
mx: Optional[
|
|
122
|
+
Union[
|
|
123
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
124
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
125
|
+
]
|
|
126
|
+
] = None,
|
|
127
|
+
my: Optional[
|
|
128
|
+
Union[
|
|
129
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
130
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
131
|
+
]
|
|
132
|
+
] = None,
|
|
133
|
+
mt: Optional[
|
|
134
|
+
Union[
|
|
135
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
136
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
137
|
+
]
|
|
138
|
+
] = None,
|
|
139
|
+
mr: Optional[
|
|
140
|
+
Union[
|
|
141
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
142
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
143
|
+
]
|
|
144
|
+
] = None,
|
|
145
|
+
mb: Optional[
|
|
146
|
+
Union[
|
|
147
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
148
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
149
|
+
]
|
|
150
|
+
] = None,
|
|
151
|
+
ml: Optional[
|
|
152
|
+
Union[
|
|
153
|
+
Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
|
154
|
+
Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
155
|
+
]
|
|
156
|
+
] = None,
|
|
157
|
+
style: Optional[Style] = None,
|
|
158
|
+
key: Optional[Any] = None,
|
|
159
|
+
id: Optional[Any] = None,
|
|
160
|
+
class_name: Optional[Any] = None,
|
|
161
|
+
autofocus: Optional[bool] = None,
|
|
162
|
+
custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
|
|
163
|
+
on_blur: Optional[
|
|
164
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
165
|
+
] = None,
|
|
166
|
+
on_checked_change: Optional[
|
|
167
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
168
|
+
] = None,
|
|
169
|
+
on_click: Optional[
|
|
170
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
171
|
+
] = None,
|
|
172
|
+
on_context_menu: Optional[
|
|
173
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
174
|
+
] = None,
|
|
175
|
+
on_double_click: Optional[
|
|
176
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
177
|
+
] = None,
|
|
178
|
+
on_focus: Optional[
|
|
179
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
180
|
+
] = None,
|
|
181
|
+
on_mount: Optional[
|
|
182
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
183
|
+
] = None,
|
|
184
|
+
on_mouse_down: Optional[
|
|
185
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
186
|
+
] = None,
|
|
187
|
+
on_mouse_enter: Optional[
|
|
188
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
189
|
+
] = None,
|
|
190
|
+
on_mouse_leave: Optional[
|
|
191
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
192
|
+
] = None,
|
|
193
|
+
on_mouse_move: Optional[
|
|
194
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
195
|
+
] = None,
|
|
196
|
+
on_mouse_out: Optional[
|
|
197
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
198
|
+
] = None,
|
|
199
|
+
on_mouse_over: Optional[
|
|
200
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
201
|
+
] = None,
|
|
202
|
+
on_mouse_up: Optional[
|
|
203
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
204
|
+
] = None,
|
|
205
|
+
on_scroll: Optional[
|
|
206
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
207
|
+
] = None,
|
|
208
|
+
on_unmount: Optional[
|
|
209
|
+
Union[EventHandler, EventSpec, list, function, BaseVar]
|
|
210
|
+
] = None,
|
|
211
|
+
**props
|
|
212
|
+
) -> "Switch":
|
|
213
|
+
"""Create a new component instance.
|
|
214
|
+
|
|
215
|
+
Will prepend "RadixThemes" to the component tag to avoid conflicts with
|
|
216
|
+
other UI libraries for common names, like Text and Button.
|
|
217
|
+
|
|
218
|
+
Args:
|
|
219
|
+
*children: Child components.
|
|
220
|
+
as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
221
|
+
default_checked: Whether the switch is checked by default
|
|
222
|
+
checked: Whether the switch is checked
|
|
223
|
+
disabled: If true, prevent the user from interacting with the switch
|
|
224
|
+
required: If true, the user must interact with the switch to submit the form
|
|
225
|
+
name: The name of the switch (when submitting a form)
|
|
226
|
+
value: The value associated with the "on" position
|
|
227
|
+
size: Switch size "1" - "4"
|
|
228
|
+
variant: Variant of switch: "solid" | "soft" | "outline" | "ghost"
|
|
229
|
+
color: Override theme color for switch
|
|
230
|
+
high_contrast: Whether to render the switch with higher contrast color against background
|
|
231
|
+
radius: Override theme radius for switch: "none" | "small" | "medium" | "large" | "full"
|
|
232
|
+
m: Margin: "0" - "9"
|
|
233
|
+
mx: Margin horizontal: "0" - "9"
|
|
234
|
+
my: Margin vertical: "0" - "9"
|
|
235
|
+
mt: Margin top: "0" - "9"
|
|
236
|
+
mr: Margin right: "0" - "9"
|
|
237
|
+
mb: Margin bottom: "0" - "9"
|
|
238
|
+
ml: Margin left: "0" - "9"
|
|
239
|
+
style: The style of the component.
|
|
240
|
+
key: A unique key for the component.
|
|
241
|
+
id: The id for the component.
|
|
242
|
+
class_name: The class name for the component.
|
|
243
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
244
|
+
custom_attrs: custom attribute
|
|
245
|
+
**props: Component properties.
|
|
246
|
+
|
|
247
|
+
Returns:
|
|
248
|
+
A new component instance.
|
|
249
|
+
"""
|
|
250
|
+
...
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"""Interactive components provided by @radix-ui/themes."""
|
|
2
|
+
from typing import Literal, Union
|
|
3
|
+
|
|
4
|
+
from reflex import el
|
|
5
|
+
from reflex.vars import Var
|
|
6
|
+
|
|
7
|
+
from ..base import (
|
|
8
|
+
CommonMarginProps,
|
|
9
|
+
RadixThemesComponent,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class TableRoot(el.Table, CommonMarginProps, RadixThemesComponent):
|
|
14
|
+
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
|
15
|
+
|
|
16
|
+
tag = "Table.Root"
|
|
17
|
+
|
|
18
|
+
# The size of the table: "1" | "2" | "3"
|
|
19
|
+
size: Var[Literal[1, 2, 3]]
|
|
20
|
+
|
|
21
|
+
# The variant of the table
|
|
22
|
+
variant: Var[Literal["surface", "ghost"]]
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class TableHeader(el.Thead, CommonMarginProps, RadixThemesComponent):
|
|
26
|
+
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
|
27
|
+
|
|
28
|
+
tag = "Table.Header"
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class TableRow(el.Tr, CommonMarginProps, RadixThemesComponent):
|
|
32
|
+
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
|
33
|
+
|
|
34
|
+
tag = "Table.Row"
|
|
35
|
+
|
|
36
|
+
# The alignment of the row
|
|
37
|
+
align: Var[Literal["start", "center", "end", "baseline"]]
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class TableColumnHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
|
41
|
+
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
|
42
|
+
|
|
43
|
+
tag = "Table.ColumnHeaderCell"
|
|
44
|
+
|
|
45
|
+
# The justification of the column
|
|
46
|
+
justify: Var[Literal["start", "center", "end"]]
|
|
47
|
+
|
|
48
|
+
# width of the column
|
|
49
|
+
width: Var[Union[str, int]]
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class TableBody(el.Tbody, CommonMarginProps, RadixThemesComponent):
|
|
53
|
+
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
|
54
|
+
|
|
55
|
+
tag = "Table.Body"
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class TableCell(el.Td, CommonMarginProps, RadixThemesComponent):
|
|
59
|
+
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
|
60
|
+
|
|
61
|
+
tag = "Table.Cell"
|
|
62
|
+
|
|
63
|
+
# The justification of the column
|
|
64
|
+
justify: Var[Literal["start", "center", "end"]]
|
|
65
|
+
|
|
66
|
+
# width of the column
|
|
67
|
+
width: Var[Union[str, int]]
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class TableRowHeaderCell(el.Th, CommonMarginProps, RadixThemesComponent):
|
|
71
|
+
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
|
|
72
|
+
|
|
73
|
+
tag = "Table.RowHeaderCell"
|
|
74
|
+
|
|
75
|
+
# The justification of the column
|
|
76
|
+
justify: Var[Literal["start", "center", "end"]]
|
|
77
|
+
|
|
78
|
+
# width of the column
|
|
79
|
+
width: Var[Union[str, int]]
|