ui icon indicating copy to clipboard operation
ui copied to clipboard

refactor(v4 components): use radix-ui mono package

Open CHC383 opened this issue 8 months ago • 6 comments

Close #6428

This PR updates all the @radix-ui/* imports in v4 to use the new radix-ui package.

@shadcn I didn't touch the old Tailwind v3 based components as I am not sure if you want to bring these updates there, but I am open to contribute if you want.

CHC383 avatar Mar 05 '25 20:03 CHC383

@CHC383 is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Mar 05 '25 20:03 vercel[bot]

Let's test.

shadcn avatar Mar 06 '25 05:03 shadcn

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview Mar 10, 2025 10:09am
v4 ✅ Ready (Inspect) Visit Preview Mar 10, 2025 10:09am

vercel[bot] avatar Mar 06 '25 05:03 vercel[bot]

Looks good. I'll keep testing and merge.

shadcn avatar Mar 06 '25 11:03 shadcn

@CHC383 I think I'm going to move this one to the next milestone. I definitely want to do it but some v4 projects have already shipped with the @radix-ui/* deps and I'd like to offer a codemod to switch to the single package. Let me know what you think.

shadcn avatar Mar 12 '25 15:03 shadcn

@shadcn That sounds good to me

CHC383 avatar Mar 12 '25 18:03 CHC383

here's the codemod for you, or even better alternative in PR comment

  • https://github.com/shadcn-ui/ui/pull/7302

@ahmed-m-abbass don't mind me creating the same PR, I couldn't grasp yours easily so here we go

  • much simplified (<100 LOC) and easy to understand PR for the same

nrjdalal avatar Apr 29 '25 09:04 nrjdalal

Update: we now have a npx shadcn migrate radix command to migrate to radix-ui. I'm keeping this open. I'll push the ui.shadcn.com updates to this PR.

shadcn avatar Jun 23 '25 08:06 shadcn

🫡

nrjdalal avatar Jun 23 '25 13:06 nrjdalal

👀

cemremengu avatar Aug 26 '25 08:08 cemremengu