Create project
Start by creating a new Laravel project with Inertia and React using the laravel installer laravel new my-app
:
Run the CLI
Run the shadcn
init command to setup your project:
Configure components.json
You will be asked a few questions to configure components.json
:
That's it
You can now start adding components to your project.
The command above will add the Button
component to your project. You can then import it like this: