Logo
Vaibhav Lab's

Installation

Learn how to install Lab's components using shadcn CLI or manual installation methods.

Last updated: February 7, 2026

Installation

Get started with Lab's in seconds. Use the shadcn CLI or install manually.

Requirements

Before installing Labs, make sure your project meets these requirements:

  • Node.js 18 or later
  • React 18+ or Next.js 13+ (App Router recommended)
  • Tailwind CSS configured
  • TypeScript (recommended)

Labs is fully compatible with the shadcn registry system.

1. Initialize shadcn

npx shadcn@latest init

2. Install shadcn components

npx shadcn@latest --all

3. Add Labs registry

npx shadcn@latest registry add https://vaibhavkesarwani.vercel.app/registry.json

4. Install a component

npx shadcn@latest add http://vaibhavkesarwani.vercel.app/r/hello-world.json

Method 2: Manual Installation

If you don't want to use the CLI, you can copy components manually.

1. Install dependencies

npm install clsx tailwind-merge lucide-react

2. Add utility

lib/utils.ts
import { clsx } from "clsx";
import { twMerge } from "tailwind-merge";

export function cn(...inputs: any[]) {
  return twMerge(clsx(inputs));
}

3. Copy the component

components/labs/hello-world.tsx
import { Button } from "@/components/ui/button";

export function HelloWorld() {
  return <Button>Hello World</Button>;
}

Use Components

Import and use the installed components in your React applications

page.tsx
import { HelloWorld } from "@/components/labs/hello-world";

export default function Page() {
  return <HelloWorld />;
}