Installation
Install InertiaX into an existing Laravel + Inertia + React application. Starting a new app? Use Laravel’s React starter kit first.
For private package access, complete the onboarding sent to your access email. See Early access if you need an invitation or credentials.
Requirements
Section titled “Requirements”Your application should already use:
- PHP 8.3, 8.4, or 8.5;
- Laravel 12 or 13;
- React 19.1.1 or newer within React 19;
- Inertia’s Laravel adapter 2.0.5+ and React adapter 2.3.18+, both within 2.x, or both adapters on 3.x.
See Compatibility for the tested combinations.
Install InertiaX
Section titled “Install InertiaX”-
Install the Laravel package
Once Composer can access the package, install it in the existing application:
Terminal window composer require inertiax/inertiax-laravelLaravel discovers the package automatically. The standard Table workflow does not require publishing a configuration file.
-
Install the frontend packages
Install the renderer and Inertia integration with your preferred package manager:
Terminal window pnpm add @inertiax/react @inertiax/react-inertiaTerminal window npm install @inertiax/react @inertiax/react-inertiaTerminal window yarn add @inertiax/react @inertiax/react-inertiaTerminal window bun add @inertiax/react @inertiax/react-inertia -
Load the Table styles
Import the shipped stylesheet once in your browser entry point:
resources/js/app.tsx import '@inertiax/react/styles.css';The stylesheet is compiled and scoped. It works without Tailwind configuration.
Add the provider
Wrap Inertia’s
AppinInertiaXProvider:resources/js/app.tsx import { createInertiaApp } from '@inertiajs/react';import { InertiaXProvider } from '@inertiax/react';import { createRoot } from 'react-dom/client';import '@inertiax/react/styles.css';createInertiaApp({// Keep your existing resolve() and other options.setup({ el, App, props }) {createRoot(el).render(<InertiaXProvider><App {...props} /></InertiaXProvider>,);},});
Next step
Section titled “Next step”Build your first table.