Start by creating a new Laravel project with Inertia and React using the laravel installer
laravel new my-app:The command above will add the
Switch component to resources/js/components/ui/switch.tsx. You can then import it like this: