aspectratio: fix docstring and extra literal def (#2379)
This commit is contained in:
parent
05b4267bb4
commit
27ed574b63
@ -1,5 +1,5 @@
|
|||||||
"""Interactive components provided by @radix-ui/themes."""
|
"""Interactive components provided by @radix-ui/themes."""
|
||||||
from typing import Literal, Union
|
from typing import Union
|
||||||
|
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
|
|
||||||
@ -8,11 +8,9 @@ from ..base import (
|
|||||||
RadixThemesComponent,
|
RadixThemesComponent,
|
||||||
)
|
)
|
||||||
|
|
||||||
LiteralSwitchSize = Literal["1", "2", "3", "4"]
|
|
||||||
|
|
||||||
|
|
||||||
class AspectRatio(CommonMarginProps, RadixThemesComponent):
|
class AspectRatio(CommonMarginProps, RadixThemesComponent):
|
||||||
"""A toggle switch alternative to the checkbox."""
|
"""Displays content with a desired ratio."""
|
||||||
|
|
||||||
tag = "AspectRatio"
|
tag = "AspectRatio"
|
||||||
|
|
||||||
|
@ -7,12 +7,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload
|
|||||||
from reflex.vars import Var, BaseVar, ComputedVar
|
from reflex.vars import Var, BaseVar, ComputedVar
|
||||||
from reflex.event import EventChain, EventHandler, EventSpec
|
from reflex.event import EventChain, EventHandler, EventSpec
|
||||||
from reflex.style import Style
|
from reflex.style import Style
|
||||||
from typing import Literal, Union
|
from typing import Union
|
||||||
from reflex.vars import Var
|
from reflex.vars import Var
|
||||||
from ..base import CommonMarginProps, RadixThemesComponent
|
from ..base import CommonMarginProps, RadixThemesComponent
|
||||||
|
|
||||||
LiteralSwitchSize = Literal["1", "2", "3", "4"]
|
|
||||||
|
|
||||||
class AspectRatio(CommonMarginProps, RadixThemesComponent):
|
class AspectRatio(CommonMarginProps, RadixThemesComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user