Open leoreisdias opened 1 month ago
Same problem here also drawer do this, and it can't even use type Alias like import { Drawer as LoginDrawer }
, but as long as the final JSX name is Drawer, it work fin, like import { LoginDrawer as Drawer }
can normally import css
Seems the only way is extend the panda css for new jsx names, it kinda not parkUI's fault see panda#1749
Hello,
I have noticed a significant issue with the CSS recipes in ParkUI. After some tests, it seems that the recipes for menu, dialog, and tooltip only take effect if the component I create has exactly these names.
For example, I wanted to create a simple tooltip that only needs to receive a child and text:
Creating it this way works very well, but if I name the component something other than "Tooltip", the panda-css stops generating the CSS for the "tooltip" slotRecipe. This behavior limits the flexibility in naming components and affects the usability of the library.
Expected behavior:
The CSS recipes should be applied regardless of the component names, allowing developers to name their components freely without losing styling functionality.
Actual behavior:
The CSS recipes for menu, dialog, and tooltip only take effect if the component names are exactly "menu", "dialog", or "tooltip". Renaming these components causes the CSS not to be generated.