Laravel

Install Cubix in a Laravel app with a React frontend (Inertia).

Choose the setup that matches your starting point.

Create a Laravel app

Use the Laravel installer with a React / Inertia starter (or Breeze with React). Cubix components live in your React resources tree.

laravel new my-app

Choose the React + Inertia option when prompted, or install Breeze with React after create.

Initialize Cubix

From the app root (where package.json and your CSS entry live), run init. Default base is Base UI. Pass --base aria or --base radix if your team standardizes on React Aria or Radix UI.

pnpm dlx cubix-ui@latest init

Add a component

pnpm dlx cubix-ui@latest add button
resources/js/pages/welcome.tsx
import { Button } from "@/components/cubix/button"

export default function Welcome() {
  return (
    <div className="flex min-h-svh items-center justify-center">
      <Button>Get started</Button>
    </div>
  )
}

Next steps

Prefer a different host? See all options on the Installation page.