[reflex-web tweaks] chakra Icon is a ChakraComponent (use sx for style) (#2231)
* chakra Icon is a ChakraComponent (use sx for style) * icon: update pyi file
This commit is contained in:
parent
e3ee98098a
commit
a86bcb3c72
@ -1,11 +1,11 @@
|
|||||||
"""An icon component."""
|
"""An icon component."""
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
from reflex.components.component import Component
|
from reflex.components.libs.chakra import ChakraComponent
|
||||||
from reflex.utils import format
|
from reflex.utils import format
|
||||||
|
|
||||||
|
|
||||||
class ChakraIconComponent(Component):
|
class ChakraIconComponent(ChakraComponent):
|
||||||
"""A component that wraps a Chakra icon component."""
|
"""A component that wraps a Chakra icon component."""
|
||||||
|
|
||||||
library = "@chakra-ui/icons@2.0.19"
|
library = "@chakra-ui/icons@2.0.19"
|
||||||
|
@ -8,10 +8,10 @@ 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 List
|
from typing import List
|
||||||
from reflex.components.component import Component
|
from reflex.components.libs.chakra import ChakraComponent
|
||||||
from reflex.utils import format
|
from reflex.utils import format
|
||||||
|
|
||||||
class ChakraIconComponent(Component):
|
class ChakraIconComponent(ChakraComponent):
|
||||||
@overload
|
@overload
|
||||||
@classmethod
|
@classmethod
|
||||||
def create( # type: ignore
|
def create( # type: ignore
|
||||||
|
Loading…
Reference in New Issue
Block a user