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
The reasons for the push were mostly improved intellisense, smaller imports and prevention of incorrect use, since it's clear for each component what parent components it needs.
I am a big advocate for just using the default wherever possible and would like to hear what were the reasons for going with the separated components in Shadcn and not compound ones, especially since Radix UI already uses them?
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
Uh oh!
There was an error while loading. Please reload this page.
-
I am sure this was already discussed somewhere (also since Radix UI uses them), but I couldn’t find it.
Recently there has been a push at my company to convert the Shadcn components to compound components, e.g. like this:
With use like this:
The reasons for the push were mostly improved intellisense, smaller imports and prevention of incorrect use, since it's clear for each component what parent components it needs.
I am a big advocate for just using the default wherever possible and would like to hear what were the reasons for going with the separated components in Shadcn and not compound ones, especially since Radix UI already uses them?
Beta Was this translation helpful? Give feedback.
All reactions