Installation
What your project needs, and the one-time setup that lets the CLI and your AI install components.
Requirements
| Needs | Notes |
|---|---|
| React 19 | Every component is a client component and uses React 19. |
| Tailwind CSS v4 | Styles are Tailwind classes; there are no stylesheets to import. |
| Next.js App Router | Recommended. Any React 19 project works, including Vite. |
| TypeScript | Optional. Every file also comes in JavaScript. |
Start a New Project
If you're starting fresh, create a Next.js app with Tailwind CSS:
npx create-next-app@latest my-site --ts --tailwind --appSet Up shadcn
The CLI and the MCP server install components with shadcn, which needs a components.json in your project. Create it once, from your project's root:
npx shadcn@latest initIt asks a few questions and records where your components live. ReactHive components then install into that folder, under reacthive/: for example components/reacthive/card-pack/card-pack.tsx.
Without shadcn
You don't need shadcn to use them. On any component's page:
- Choose TypeScript or JavaScript.
- Use Copy Code (one button per file, for the few with more than one).
- Save the files together in one folder, for example
components/reacthive/card-pack/. - Import the component and use it as its page shows.
Using Them in Next.js
Every component starts with "use client", so you can import it straight into a Server Component page or layout. Pass it plain values: strings, numbers and arrays of objects, such as your image paths and captions.
import { CardPack } from "@/components/reacthive/card-pack/card-pack";
export default function Page() {
return (
<div className="h-svh">
<CardPack packs={[{ name: "Bloom", color: "#e8237f", cards: [{ src: "/cards/1.jpg", alt: "Card one", name: "Fern", no: "01" }] }]} />
</div>
);
}Most fill their parent, so give the parent a size, as above. Each component's page lists what it expects under Use It. Next: install with the CLI, or let your AI do it through the MCP server.