fix hover card and alert dialog final

This commit is contained in:
Tom Gotsman 2024-10-29 18:11:09 +00:00
parent c59ea23603
commit 418f4a7925
2 changed files with 5 additions and 2 deletions

View File

@ -24,6 +24,9 @@ class AlertDialogRoot(RadixThemesComponent):
# Fired when the open state changes.
on_open_change: EventHandler[identity_event(bool)]
# The open state of the dialog when it is initially rendered. Use when you do not need to control its open state.
default_open: Var[bool]
class AlertDialogTrigger(RadixThemesTriggerComponent):
"""Wraps the control that will open the dialog."""

View File

@ -1,6 +1,6 @@
"""Interactive components provided by @radix-ui/themes."""
from typing import Literal, Union
from typing import Literal, Union, Dict
from reflex.components.component import ComponentNamespace
from reflex.components.core.breakpoints import Responsive
@ -62,7 +62,7 @@ class HoverCardContent(elements.Div, RadixThemesComponent):
avoid_collisions: Var[bool]
# The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { top: 20, left: 20 }.
collision_padding: Var[Union[int, dict[str, int]]]
collision_padding: Var[Union[float, int, Dict[str, Union[float, int]]]]
# The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless
sticky: Var[Literal["partial", "always"]]