Skip to main content

Installation

Add Kinetic UI to a React 19 project that uses Tailwind CSS v4 and is set up for the shadcn CLI.

Requirements

  • React 19 with Next.js, Vite or another React framework.
  • Tailwind CSS v4.
  • A components.json file. Run npx shadcn@latest init if you do not have one yet.

Add the registry

Add the @kinetic namespace to the registries field in components.json.

components.json
{
  "registries": {
    "@kinetic": "https://kinetic-ui.lockman.dev/r/{name}.json"
  }
}

Add the provider

KineticProvider sets the shared tempo, accent color and reduced-motion policy. Components fall back to sensible defaults without it.

Install

npx shadcn@latest add @kinetic/kinetic-provider
app/layout.tsx
import { KineticProvider } from "@/components/kinetic/kinetic-provider";

interface RootLayoutProps {
  readonly children: React.ReactNode;
}

export default function RootLayout({ children }: RootLayoutProps) {
  return (
    <html lang="en">
      <body>
        <KineticProvider>{children}</KineticProvider>
      </body>
    </html>
  );
}

Add components

Add any component by name. The CLI also installs its npm packages and the @kinetic helpers it depends on, and writes the files to components/kinetic/.

Install

npx shadcn@latest add @kinetic/button
app/page.tsx
import { Button } from "@/components/kinetic/ui/button";

export function Cta() {
  return <Button>Get started</Button>;
}