-
I have a component that I'd like to receive styles from another component file. export function Dummy{
label,
style,
}: TitleProps) {
return (
<h1
className={css(
{
fontSize: "xxLarge"
// ...style,
},
style
)}
>
{label}
</h1>
);
} For some reason when either using destructing or merging the styles, the classes show up in my markdown but arent being applied In the HTML As shown below, the actual component is missing the blue color and text-transform properties I wrote |
Beta Was this translation helpful? Give feedback.
Answered by
astahmer
Apr 2, 2024
Replies: 1 comment
-
Panda relies on static analysis, property renaming is one of its limitations |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
segunadebayo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Panda relies on static analysis, property renaming is one of its limitations
you can use the special
css
property for that (instead ofstyle
)