Skip to content

Installation

Kinetics consists of two main parts: the Laravel Package (Backend) and the React Package (Frontend). Both must be installed and configured to work together.

Install the Kinetics package for Laravel using Composer:

Terminal window
composer require mdaushi/kinetics

This package provides the Table class interface to configure columns, actions, and pipes on the server side.

Kinetics currently supports React (via Inertia.js). Install the frontend package using NPM or your preferred package manager:

Terminal window
npm install @mdaushi/kinetics-react

or

Terminal window
pnpm add @mdaushi/kinetics-react

Kinetics is built using shadcn/ui components and uses Tailwind CSS for styling. You need to tell Tailwind to scan the utility classes inside the Kinetics package so they are not purged during the build process.

If you are using Tailwind v4, add the @source directive to your main CSS file (e.g., resources/css/app.css):

@import "tailwindcss";
@source "../../node_modules/@mdaushi/kinetics-react/dist";

If you are still using Tailwind v3, add the package dist path to the content array in your tailwind.config.js file:

export default {
content: [
// ... your existing app paths
"./node_modules/@mdaushi/kinetics-react/dist/**/*.js",
],
};

If you want to modify global defaults (such as default pagination size, available pagination options, or default themes), you can publish the Kinetics configuration file to your Laravel config directory:

Terminal window
php artisan vendor:publish --tag=kinetics-config

This will create a config/kinetics.php file in your application.

You’re now ready to build your first datatable! Head over to the Quick Start guide.