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-appChoose 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 initAdd a component
pnpm dlx cubix-ui@latest add buttonimport { 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
Components
Browse the catalog and add what you need.
Theming
Restyle tokens after init.
CLI
Full reference for init, add, view, and build.
Prefer a different host? See all options on the Installation page.