Installation
Last updated on 2026-03-30
This guide walks you through setting up the HR Dashboard Kit from scratch.
System Requirements
- Node.js 18.17 or later
- pnpm (recommended), npm, or yarn
- Git for cloning the repository
Step 1 -- Clone the Repository
Use the private repository URL from your purchase confirmation email:
git clone <your-repo-url> hr-dashboard-kit
cd hr-dashboard-kit
Step 2 -- Install Dependencies
pnpm install
This installs Next.js 16, React 19, Tailwind CSS v4, shadcn/ui components, Recharts, date-fns, and all utility libraries.
Key Dependencies
| Package | Purpose |
|---|---|
next 16.x |
React framework |
react 19.x |
UI library |
tailwindcss 4.x |
CSS framework with oklch tokens |
@base-ui/react |
Accessible UI primitives (shadcn/ui v4) |
recharts 3.x |
Dashboard and reporting charts |
date-fns 4.x |
Date formatting and utilities |
react-day-picker 9.x |
Calendar and date picker |
lucide-react |
Icons |
next-themes |
Dark mode |
sonner |
Toast notifications |
Step 3 -- Start the Dev Server
pnpm dev
Visit http://localhost:3000 to see the HR dashboard.
Step 4 -- Verify the Setup
Navigate through key pages to confirm everything works:
/-- Dashboard with stat cards, headcount trend, department distribution, activity feed/employees-- Employee directory with grid/list toggle and filters/org-chart-- Interactive org chart with search and zoom/leave-- Leave overview with balance cards and team calendar/attendance-- Attendance dashboard with check-in button and heatmap/performance-- Performance overview with review summaries/onboarding-- Onboarding dashboard with active hires and progress rings/recruitment-- Job postings with pipeline summaries/settings-- General settings, departments, roles, integrations/login-- Authentication page
Available Scripts
| Command | Description |
|---|---|
pnpm dev |
Start dev server |
pnpm build |
Create production build |
pnpm start |
Run production server |
pnpm lint |
Run ESLint checks |
Integrating into an Existing Project
- Copy
components/into your project (ui, layout, dashboard, employees, leave, attendance, performance, onboarding, recruitment, settings directories) - Copy
data/seed.tsandtypes/index.ts - Copy design tokens from
app/globals.css - Install the required dependencies from
package.json - Wire up seed data to your actual HR backend, HRIS, or API
Note: All pages use seed data from
data/seed.ts. Replace with your own data source (API, database, HRIS platform) when integrating.
Troubleshooting
Port 3000 already in use:
pnpm dev --port 3001
TypeScript errors after installation:
npx tsc --noEmit
Check that tsconfig.json path aliases match your project structure.
shadcn/ui component issues:
The HR Dashboard Kit uses shadcn/ui v4 with @base-ui/react (not Radix). Components use the render prop pattern instead of asChild. See the shadcn/ui v4 docs for details.