Skip to content

fix(cli): migrate radix outputs Slot.Root instead of SlotPrimitive.Slot - #11568

Open
jasleenkaur-qed42 wants to merge 1 commit into
shadcn-ui:mainfrom
jasleenkaur-qed42:fix/migrate-radix-slot-root
Open

fix(cli): migrate radix outputs Slot.Root instead of SlotPrimitive.Slot#11568
jasleenkaur-qed42 wants to merge 1 commit into
shadcn-ui:mainfrom
jasleenkaur-qed42:fix/migrate-radix-slot-root

Conversation

@jasleenkaur-qed42

Copy link
Copy Markdown
Contributor

Summary

  • shadcn migrate radix no longer aliases Slot as SlotPrimitive.
  • Slot usages (asChild ternaries, JSX, ComponentProps<typeof Slot>) are rewritten to Slot.Root, matching v4 registry components.
  • Unit tests updated for the new output.

Closes #11564

Test plan

  • pnpm exec vitest run src/migrations/migrate-radix.test.ts (38 passed)
  • Run npx shadcn migrate radix on a file that imports @radix-ui/react-slot and confirm output uses import { Slot } from "radix-ui" and Slot.Root

Align migrate radix Slot output with registry components by keeping
import { Slot } from radix-ui and rewriting usages to Slot.Root.
@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

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

A member of the Team first needs to authorize it.

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.

[bug]: fix(cli): migrate radix outputs SlotPrimitive.Slot instead of Slot.Root

1 participant