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
Currently the @latest option for the shadcn npm command installs the React 19 version of components. It would be nice to still be able to install the React 18 versions, whether that involves using an older version of the CLI tool or is just a new option.
Affected component/components
No response
Additional Context
Additional details here...
Before submitting
I've made research efforts and searched the documentation
I've searched for existing issues and PRs
The text was updated successfully, but these errors were encountered:
If you have an existing shadcn/ui project that is using React 18 and v3, the cli will install compatible components.
If you're starting a new project and prefer React 18 and v3, create your project by following the framework guide. Then npx shadcn@latest init will correctly detect your versions and install the compatible components.
I've tested this and it works. I've attached a recording below for Next.js 18 and Tailwind v3.
Notice that the cli properly uses tailwind.config.ts and install React 18 components (i.e with forwardRef...etc)
Give it a try. If you see any issues, ping me here. I'll help.
Feature description
Currently the @latest option for the shadcn npm command installs the React 19 version of components. It would be nice to still be able to install the React 18 versions, whether that involves using an older version of the CLI tool or is just a new option.
Affected component/components
No response
Additional Context
Additional details here...
Before submitting
The text was updated successfully, but these errors were encountered: