
If you’ve admired the Shadcn UI library for its beautiful and user-friendly components, you’ll be thrilled to know that integrating it with Laravel has just become significantly easier. The official Shadcn Twitter account recently announced a major update that simplifies the setup process with Laravel Breeze. With just one command, you can now seamlessly integrate Shadcn into your Laravel projects. Here’s what you need to know:
Shadcn now supports Laravel Breeze out of the box. The new npx command makes the initial setup a breeze. Simply run:
npx shadcn@latest initThis command sets up everything you need to start using Shadcn with Laravel Breeze, streamlining the process and saving you time.
Here’s how you can integrate those steps into your article:
To get started with integrating Shadcn into your Laravel Breeze project, follow these steps:
Run the following command to set up a new Laravel project with TypeScript, Breeze, React stack, and Git:
laravel new my-app --typescript --breeze --stack=react --git --no-interactioncd my-appnpx shadcn@latest initThis command sets up Shadcn in your project, adding its components alongside the existing Breeze components.
npx shadcn@latest add buttonFor more details on the update, check out the official announcement on Shadcn’s Twitter.
No, the new Shadcn update does not override the default components in Laravel Breeze. Instead, it adds Shadcn components to your project alongside the existing Breeze components. This means you can use both sets of components within the same application.