Elevate your chat experience with the Polyfire SDK, seamlessly integrated into a React project and stylishly crafted using styled-components! Embrace the power and safety of TypeScript in your React development.
- π Features
- π§ Prerequisites
- π Installation
- π₯ Usage
- π¨ Color Picker for Development
- π¬ Using polyfire-cli
- π Scripts
- π Dependencies
- π₯ Stack
- β¨ Contributing
- π License
- Smooth integration with the Polyfire SDK for enhanced chat functionalities.
- Ready-to-use themes for chat, header, and footer, customizable to fit your needs.
- Developed with the versatile and powerful React framework.
- Node.js
- npm/yarn
1οΈβ£. Clone the repository:
git clone https://github.com/polyfire-ai/polyfire-chat-react-boilerplate.git
2οΈβ£. Navigate to the project directory:
cd polyfire-chat-react-boilerplate
3οΈβ£. Install dependencies:
npm install
1οΈβ£. Launch the development server:
npm start
2οΈβ£. Visit http://localhost:3000
to see your chatbot in action!
In the development environment, a color picker tool is included for personalizing the chat UI's color palette. This tool enables developers to experiment with various colors in real-time. After selecting your preferred colors, click the "Copy Config Color" button to copy the configuration. Then, update the default color configuration in src/app/page.jsx
with your new selection.
Opt for the polyfire-cli
for a streamlined setup:
1οΈβ£. Activate the CLI:
npx polyfire-js
2οΈβ£. Choose "chat". 3οΈβ£. Follow the step-by-step instructions for a hassle-free configuration.
npm start
: Run the development server.npm run build
: Get ready for production.npm run preview
: Peek into the production-ready build.
- Core:
react
,react-dom
- Chat:
@polyfire/chat
,polyfire
- Icons:
phosphor-react
- Dialog:
@radix-ui/react-dialog
- Types:
typescript
- React
- TypeScript
Ideas? π€ Bugs? π Be a part of our journey! Check out issues to contribute.
This project adheres to the MIT License. Refer to the LICENSE
file for more information.
If polyfire-chat-react-boilerplate brightens your day, don't forget to give us a β on GitHub!