Prerequisites
Before installing the React UI Toolkit, ensure you have:- Node.js 16.x or higher
- React 18.x or higher
- A package manager (npm, yarn, or pnpm)
Install the package
Install the FlowX.AI React UI Toolkit using your preferred package manager:Import components
Once installed, you can import components directly from the package:Import styles
The React UI Toolkit requires CSS styles to be imported. Add the following import to your application entry point (e.g.,main.tsx or App.tsx):
Make sure to import the styles before your custom CSS to allow for easier overrides.
TypeScript configuration
If you’re using TypeScript, the package includes type definitions out of the box. No additional configuration is needed. Yourtsconfig.json should include:
Bundle configuration
Vite
If you’re using Vite, ensure yourvite.config.ts includes React plugin:
Webpack
For Webpack-based projects, ensure you have the necessary loaders for CSS and SVG:Verify installation
Create a simple test component to verify the installation:Next steps
Now that you have the React UI Toolkit installed, explore the component documentation:- Button - Learn about button variants and usage
- Card - Build card layouts
- Chat - Implement chat interfaces
- Form components - Build forms with inputs and controls