You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- import * as AlertDialogPrimitive from "@radix-ui/react-dialog"
19
+
+ import { AlertDialog as AlertDialogPrimitive } from "radix-ui"
20
+
```
21
+
22
+
Make sure to test your components and project after running the command.
23
+
24
+
**Note:** To update imports for newly added components, run the migration command again.
25
+
7
26
## June 2025 - Calendar Component
8
27
9
28
We've upgraded the `Calendar` component to the latest version of [React DayPicker](https://daypicker.dev).
@@ -42,9 +61,9 @@ Learn more in the thread here: https://x.com/shadcn/status/1917597228513853603
42
61
43
62
We tagged shadcn 2.5.0 earlier this week. It comes with a pretty cool feature: **resolve anywhere**.
44
63
45
-
Registries can now place files anywhere in an app and we’ll properly resolve imports. No need to stick to a fixed file structure. It can even add files outside the registry itself.
64
+
Registries can now place files anywhere in an app and we'll properly resolve imports. No need to stick to a fixed file structure. It can even add files outside the registry itself.
46
65
47
-
On install, we track all files and perform a multi-pass resolution to correctly handle imports and aliases. It’s fast.
66
+
On install, we track all files and perform a multi-pass resolution to correctly handle imports and aliases. It's fast.
48
67
49
68
## March 2025 - Cross-framework Route Support
50
69
@@ -61,7 +80,7 @@ What's New:
61
80
- The CLI can now initialize projects with Tailwind v4.
62
81
- Full support for the new @theme directive and @theme inline option.
63
82
- All components are updated for Tailwind v4 and React 19.
64
-
- We’ve removed the forwardRefs and adjusted the types.
83
+
- We've removed the forwardRefs and adjusted the types.
65
84
- Every primitive now has a data-slot attribute for styling.
66
85
- We've fixed and cleaned up the style of the components.
67
86
- We're deprecating the toast component in favor of sonner.
@@ -139,7 +158,7 @@ The new CLI is now available. It's a complete rewrite with a lot of new features
139
158
This is a major step towards distributing code that you and your LLMs can access and use.
140
159
141
160
1. First up, the cli now has support for all major React framework out of the box. Next.js, Remix, Vite and Laravel. And when you init into a new app, we update your existing Tailwind files instead of overriding.
142
-
2. A component now ship its own dependencies. Take the accordion for example, it can define its Tailwind keyframes. When you add it to your project, we’ll update your tailwind.config.ts file accordingly.
161
+
2. A component now ship its own dependencies. Take the accordion for example, it can define its Tailwind keyframes. When you add it to your project, we'll update your tailwind.config.ts file accordingly.
143
162
3. You can also install remote components using url. `npx shadcn add https://acme.com/registry/navbar.json`.
144
163
4. We have also improve the init command. It does framework detection and can even init a brand new Next.js app in one command. `npx shadcn init`.
145
164
5. We have created a new schema that you can use to ship your own component registry. And since it has support for urls, you can even use it to distribute private components.
0 commit comments