-
Hi there, I am looking at transitioning from Styled component to Panda css, however I dont see the following being mentioned in the docs around below two scenario Scenario 1: const Element = styled(Button) Scenario 2: const Button = styled.div<{isTrue: boolean}>` ${(props) => { thanks a lot! :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Scenario 1 -> yes, that worksScenario 2:there's no such thing as an inline callback like the
|
Beta Was this translation helpful? Give feedback.
Scenario 1 -> yes, that works
Scenario 2:
there's no such thing as an inline callback like the
backgroundColor: ${(props) => props.isTrue? 'red' : 'white'
with Panda styled factorycolor: 'colorBg'
styled
inside one of your custom component and deal with that logic in there