Installation
Install the package and its two peers - everything else, including Lexical, comes with it.
Step 1 - Install the package and peers
shell
npm install @realtimexsco/live-chat react react-domNo Tailwind plugin, no zustand and no lexical - they're bundled. See Prerequisites.
Step 2 - Verify the install
shell
npm ls @realtimexsco/live-chatnpm ls lexical @lexical/react dompurify # nested under live-chat - Lexical is bundledls node_modules/@realtimexsco/live-chat/dist/index.d.ts # TypeScript types must existStep 3 - CSS, config file and chat page
Import the stylesheet once, create chat.config.ts and render ChatMain - see Project setup and Quick start.
Step 4 - Run your app
Start your dev server and open the page that renders ChatMain.