ui
ui copied to clipboard
refactor(v4 components): use radix-ui mono package
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 is attempting to deploy a commit to the shadcn-pro Team on Vercel.
A member of the Team first needs to authorize it.
Let's test.
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 |
Looks good. I'll keep testing and merge.
@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 That sounds good to me
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
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.
🫡
👀