remove extra props on scroll area (#2581)
This commit is contained in:
parent
58b5e2f5bd
commit
93c0091aad
@ -4,7 +4,6 @@ from typing import Literal
|
||||
from reflex.vars import Var
|
||||
|
||||
from ..base import (
|
||||
LiteralRadius,
|
||||
RadixThemesComponent,
|
||||
)
|
||||
|
||||
@ -14,12 +13,6 @@ class ScrollArea(RadixThemesComponent):
|
||||
|
||||
tag = "ScrollArea"
|
||||
|
||||
# The size of the radio group: "1" | "2" | "3"
|
||||
size: Var[Literal[1, 2, 3]]
|
||||
|
||||
# The radius of the radio group
|
||||
radius: Var[LiteralRadius]
|
||||
|
||||
# The alignment of the scroll area
|
||||
scrollbars: Var[Literal["vertical", "horizontal", "both"]]
|
||||
|
||||
|
@ -9,7 +9,7 @@ from reflex.event import EventChain, EventHandler, EventSpec
|
||||
from reflex.style import Style
|
||||
from typing import Literal
|
||||
from reflex.vars import Var
|
||||
from ..base import LiteralRadius, RadixThemesComponent
|
||||
from ..base import RadixThemesComponent
|
||||
|
||||
class ScrollArea(RadixThemesComponent):
|
||||
@overload
|
||||
@ -80,13 +80,6 @@ class ScrollArea(RadixThemesComponent):
|
||||
],
|
||||
]
|
||||
] = None,
|
||||
size: Optional[Union[Var[Literal[1, 2, 3]], Literal[1, 2, 3]]] = None,
|
||||
radius: Optional[
|
||||
Union[
|
||||
Var[Literal["none", "small", "medium", "large", "full"]],
|
||||
Literal["none", "small", "medium", "large", "full"],
|
||||
]
|
||||
] = None,
|
||||
scrollbars: Optional[
|
||||
Union[
|
||||
Var[Literal["vertical", "horizontal", "both"]],
|
||||
@ -163,8 +156,6 @@ class ScrollArea(RadixThemesComponent):
|
||||
*children: Child components.
|
||||
color: map to CSS default color property.
|
||||
color_scheme: map to radix color property.
|
||||
size: The size of the radio group: "1" | "2" | "3"
|
||||
radius: The radius of the radio group
|
||||
scrollbars: The alignment of the scroll area
|
||||
type_: Describes the nature of scrollbar visibility, similar to how the scrollbar preferences in MacOS control visibility of native scrollbars. "auto" | "always" | "scroll" | "hover"
|
||||
scroll_hide_delay: If type is set to either "scroll" or "hover", this prop determines the length of time, in milliseconds, before the scrollbars are hidden after the user stops interacting with scrollbars.
|
||||
|
@ -13,8 +13,6 @@ from ..base import (
|
||||
RadixThemesComponent,
|
||||
)
|
||||
|
||||
LiteralButtonSize = Literal[1, 2, 3, 4]
|
||||
|
||||
|
||||
class SelectRoot(RadixThemesComponent):
|
||||
"""Displays a list of options for the user to pick from, triggered by a button."""
|
||||
|
@ -15,8 +15,6 @@ from reflex.constants import EventTriggers
|
||||
from reflex.vars import Var
|
||||
from ..base import LiteralAccentColor, LiteralRadius, RadixThemesComponent
|
||||
|
||||
LiteralButtonSize = Literal[1, 2, 3, 4]
|
||||
|
||||
class SelectRoot(RadixThemesComponent):
|
||||
def get_event_triggers(self) -> Dict[str, Any]: ...
|
||||
@overload
|
||||
|
Loading…
Reference in New Issue
Block a user