Skip to content

feat(shadcn): add migration command (codemod) for radix-ui package (v4 components) #7181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ahmed-m-abbass
Copy link

@ahmed-m-abbass ahmed-m-abbass commented Apr 12, 2025

Close #6428
based on #6868

  • Refactore all registry components to use the new radix-ui package (v4).

  • Add migrate radix-ui command option:

    • Install radix-ui package
    • Update @radix-ui/* imports to radix-ui
    • Update JSX tags and type references
    • Optionally uninstall @radix-ui/* packages
pnpm dlx shadcn@latest migrate radix-ui

Copy link

vercel bot commented Apr 12, 2025

@ahmed-m-abbass is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@ahmed-m-abbass
Copy link
Author

@shadcn please check the migration command - it’s not perfect, but I’ve tested it in both Next.js project and monorepo.
If it looks good to you, let me know if you'd like to add any documentation or changes!

@ahmed-m-abbass ahmed-m-abbass changed the title refactor(v4): migrate to "radix-ui" package and add migration command option feat(shadcn): add migration command (codemod) for radix-ui package (v4 components) Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat]: Switch to radix-ui mono package
1 participant