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’ve been maintaining a UI library repo since 2024, and it’s been using shadcn/ui version 2.8.0 consistently across components (Some component has been modified with my personal preference).
I’m now creating a new component in this repo that depends on from shadcn.
However, I noticed that the structure generated by:
Since the structure has evolved between versions, I’m wondering:
Should I:
• Stick with npx [email protected] add avatar to maintain structural consistency? (IDK what will happen if the users has the latest shadcn version)
• Or use npx shadcn@latest add avatar and manually adapt the structure?
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’ve been maintaining a UI library repo since 2024, and it’s been using shadcn/ui version 2.8.0 consistently across components (Some component has been modified with my personal preference).
I’m now creating a new component in this repo that depends on from shadcn.
However, I noticed that the structure generated by:
npx [email protected] add avatar
is slightly different from the one generated by:
npx shadcn@latest add avatar
Since the structure has evolved between versions, I’m wondering:
Should I:
• Stick with npx [email protected] add avatar to maintain structural consistency? (IDK what will happen if the users has the latest shadcn version)
• Or use npx shadcn@latest add avatar and manually adapt the structure?
Beta Was this translation helpful? Give feedback.
All reactions