Skip to content
ReactHive

Docs

Installation

What your project needs, and the one-time setup that lets the CLI and your AI install components.

Requirements

NeedsNotes
React 19Every component is a client component and uses React 19.
Tailwind CSS v4Styles are Tailwind classes; there are no stylesheets to import.
Next.js App RouterRecommended. Any React 19 project works, including Vite.
TypeScriptOptional. Every file also comes in JavaScript.

Start a New Project

If you're starting fresh, create a Next.js app with Tailwind CSS:

Terminal
npx create-next-app@latest my-site --ts --tailwind --app

Set 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:

Terminal
npx shadcn@latest init

It 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:

  1. Choose TypeScript or JavaScript.
  2. Use Copy Code (one button per file, for the few with more than one).
  3. Save the files together in one folder, for example components/reacthive/card-pack/.
  4. 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.

app/page.tsx
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.

Built Something With Them?

We'd love to see it, and to hear what you'd like next. Or start from a whole site.

Start a Project

Tell us what you're making. A few lines is plenty; we'll ask the rest on a call.

What do you need?
Rough budget (optional)

Or email projects@reacthive.dev