Skip to content

Commit 05702c6

Browse files
committed
update tooltip
1 parent e6bb9c4 commit 05702c6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

reflex_ui/components/base/tooltip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class TooltipPositioner(TooltipBaseComponent):
169169
track_anchor: Var[bool]
170170

171171
# Determines how to handle collisions when positioning the popup.
172-
collision_avoidance: Var[str]
172+
collision_avoidance: Var[str | dict[str, str]]
173173

174174
# Render prop for the positioner
175175
render_: Var[Component]

reflex_ui/components/base/tooltip.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,10 @@ class TooltipPositioner(TooltipBaseComponent):
262262
| Var[Literal["absolute", "fixed"]]
263263
| None = None,
264264
track_anchor: Var[bool] | bool | None = None,
265-
collision_avoidance: Var[str] | str | None = None,
265+
collision_avoidance: Var[dict[str, str] | str]
266+
| dict[str, str]
267+
| str
268+
| None = None,
266269
render_: Component | Var[Component] | None = None,
267270
unstyled: Var[bool] | bool | None = None,
268271
style: Sequence[Mapping[str, Any]]

0 commit comments

Comments
 (0)