本文へスキップ
Kitbay
スキル

migrate-radix-to-base

MIT2026年11月11日 更新127,892GitHubスター

A skill from the shadcn/ui project that switches the primitives under a React app's components from Radix UI to Base UI while keeping the project building at every step.

スキルの内容

A skill from the shadcn/ui project that switches the primitives under a React app's components from Radix UI to Base UI while keeping the project building at every step. It checks the project with the shadcn CLI, requires a clean git branch and a baseline build, and installs Base UI next to Radix until the last component is done. For shadcn projects it compares the stock Radix and Base versions to carry over the user's customisations, and for hand-written code it applies mapping tables. By default it migrates one component at a time, repointing callers before swapping files, and writes a short report per component listing changes, behaviour differences and what to check by hand. It ships no scripts.

できること

  • Migrate shadcn/ui components from Radix UI to Base UI
  • Keep user customisations when swapping component bases
  • Migrate one component at a time or a whole project
  • Write a migration report for each component