Getting Started
Kokonut UI uses the shadcn CLI for component installation. This guide will walk you through setting up your project to use Kokonut UI components.Before you begin, make sure you have a React project set up with Tailwind CSS v4. Kokonut UI requires Tailwind CSS to work properly.
Installation Steps
The
components.json file is optional if you’re using the copy-paste method. However, we strongly recommend using the CLI for easier installation and dependency management.components/kokonutui/ directoryThat’s it! 🎉
You’ve successfully set up Kokonut UI in your project. You can now browse the component library and install any component you need.Additional Configuration
Optional Dependencies
Some components require additional libraries for specific features (like animations or special effects). These dependencies are listed at the bottom of each component’s documentation page. Make sure to install them to ensure the component works properly.Monorepo Setup
If you’re working in a monorepo, use the-c flag to specify the path to your workspace:
Tailwind CSS v4 Setup
All components are built with Tailwind CSS v4. Make sure you have it properly configured in your project. Follow the official Tailwind CSS v4 installation guide for your framework.Copy and Paste Alternative
While we provide a convenient ‘copy’ button for viewing component code, we strongly recommend using the CLI for installation. The CLI ensures all necessary files and dependencies are included automatically.
- Manually install all dependencies
- Create the necessary file structure
- Copy any required utility functions or sub-components
Troubleshooting
Component not found
Make sure you’ve added the Kokonut UI registry to yourcomponents.json file and that the registry URL is correct.
Missing dependencies
If you encounter missing dependency errors, check the component’s documentation page for a list of required packages and install them manually.Path alias issues
Kokonut UI uses the@/* path alias. Ensure your tsconfig.json or jsconfig.json is configured correctly:
What’s Next?
Browse Components
Explore the complete collection of 46+ components with live previews and code examples.
Customization Guide
Learn how to customize components to match your design system.