Requirements
Before installing Kivora React, ensure you meet the following requirements:| Peer Dependency | Version |
|---|---|
react | ≥ 18 |
react-dom | ≥ 18 |
Kivora React requires React 18 or higher to support concurrent features and improved hooks behavior.
Install the Package
Choose your preferred package manager to install Kivora React:@kivora/react along with its internal dependency @kivora/core, which provides the design system and type definitions.
Import Global Styles
Kivora React uses CSS design tokens for theming and dark mode support. Import the global stylesheet once at the root of your application:Optional: Setup Toast Notifications
If you plan to use the toast notification system, wrap your app with theToastProvider component:
ToastProvider uses Sonner under the hood for beautiful, accessible toast notifications.
Verify Installation
Create a simple test component to verify everything is working:TypeScript Configuration
Kivora React is built with TypeScript and ships with type definitions. No additional@types packages are needed.
If you’re using TypeScript, ensure your tsconfig.json includes:
Bundle Optimization
Kivora React is tree-shakeable by default. Modern bundlers like Vite, Webpack 5, and Next.js will automatically remove unused components and hooks from your production bundle.Next Steps
Quick Start
Build your first component in 5 minutes
Theming Guide
Customize colors and design tokens