Installation
PageKit leverages the ShadCN CLI:3 for seamless component integration. This means you can add beautiful, production-ready components to your project without worrying about complex installations or dependency conflicts.
Follow the step-by-step guide below to get started with PageKit in your preferred framework.
Get PageKit up and running in your Next.js project in just a few minutes. Next.js comes with built-in support for Tailwind CSS, making the setup process smooth and straightforward.
- Create a new Next.js project with Tailwind CSS
Run the following command to create a new Next.js project. The interactive CLI will guide you through the setup process.
npx create-next-app@latest your-project-name
cd your-project-nameImportant: When prompted during installation, make sure to select:
- ✅ TypeScript - For type safety and better developer experience
- ✅ Tailwind CSS - Required for PageKit styling
- ✅ App Router - Recommended for modern Next.js features
2. Initialize ShadCN in your project
ShadCN CLI will set up the necessary configuration files and folder structure for managing your components. This is a one-time setup process.
Follow the prompts to configure your project. The defaults work great for most projects.
- Add PageKit registry to your configuration
After initialization, you'll find a components.json file in your project root. Open it and add the PageKit registry to the registries section:
{
"registries": {
"@pagekit": "https://page-kit.vercel.app/r/{name}.json"
}
}This tells ShadCN where to find PageKit components when you want to add them to your project.
- Add PageKit components to your project
Now you're ready to add PageKit components! Use the @pagekit prefix to add any component. For example, to add a button:
The component will be automatically added to your components/ui folder, ready to use in your application. You can then import and use it like any other React component.
🎉 You're all set!
Start exploring the available components in the documentation and add them to your project as needed. Each component is independent, so you only install what you use.