You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an existing MUI javascript project that im integrating shadcn with. I cannot migrate entirely as it's a complex codebase and will hv to be a gradual process.
Certain components work well, eg Sonner works out of the box, and I'm even able to toggle dark and light mode via useTheme.
However, when I rip examples from the site such as Card, or Toast, they don't render.
Card in particular, only renders text and doesnt show body. What's going on that Sonner works and others doesnt?
Example of Sonner that works perfectly:
Example of a Card that just renders as if I put text on the background:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have an existing MUI javascript project that im integrating shadcn with. I cannot migrate entirely as it's a complex codebase and will hv to be a gradual process.
Certain components work well, eg Sonner works out of the box, and I'm even able to toggle dark and light mode via useTheme.
However, when I rip examples from the site such as Card, or Toast, they don't render.
Card in particular, only renders text and doesnt show body. What's going on that Sonner works and others doesnt?
Example of Sonner that works perfectly:
Example of a Card that just renders as if I put text on the background:
Beta Was this translation helpful? Give feedback.
All reactions