|
@@ -13,7 +13,9 @@ from reflex.vars.base import Var
|
|
|
|
|
|
from ..base import RadixThemesComponent
|
|
|
|
|
|
-def on_value_change(value: Var[str | List[str]]) -> Tuple[Var[str | List[str]]]: ...
|
|
|
+def on_value_change(
|
|
|
+ value: Var[Union[str, List[str]]],
|
|
|
+) -> Tuple[Var[Union[str, List[str]]]]: ...
|
|
|
|
|
|
class SegmentedControlRoot(RadixThemesComponent):
|
|
|
@overload
|
|
@@ -118,7 +120,10 @@ class SegmentedControlRoot(RadixThemesComponent):
|
|
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
|
on_blur: Optional[EventType[[], BASE_STATE]] = None,
|
|
|
on_change: Optional[
|
|
|
- Union[EventType[[], BASE_STATE], EventType[[str | List[str]], BASE_STATE]]
|
|
|
+ Union[
|
|
|
+ EventType[[], BASE_STATE],
|
|
|
+ EventType[[Union[str, List[str]]], BASE_STATE],
|
|
|
+ ]
|
|
|
] = None,
|
|
|
on_click: Optional[EventType[[], BASE_STATE]] = None,
|
|
|
on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
|