Replies: 1 comment
-
ts-morph only supports ts(x) syntax from a quick look at the existing test, it seems like the feel free to make a PR to fix this for better support of style props in this an alternative is to use hooks ( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Currently Panda CSS only supports style props for jsx-based components.
This request proposes style props support for svelte components.
Problem Statement/Justification
Component.svelte
+page.svelte
This code renders following markup, but no corresponding styles are generated.
Panda generator does not see this as a token references, in contrast to what it does to jsx components.
Proposed Solution or API
Please support svelte component props like mentioned above.
Alternatives
Use
css.raw
as it forcefully make Panda generator to recognize it as a tokens.But it is somewhat tedious to use
css.raw
everywhere.+page.svelte
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions