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.jsonfile. Runnpx shadcn@latest initif you do not have one yet.
Add the registry
Add the @kinetic namespace to the registries field in components.json.
components.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-providerapp/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/buttonapp/page.tsx
import { Button } from "@/components/kinetic/ui/button";
export function Cta() {
return <Button>Get started</Button>;
}