React

The widget as a React component. Point baseUrl at your origin.

What it is

@humaner/react wraps the same widget as the embed snippet, with React props and SSR-safe loading. Chat hits your agent through baseUrl.

Install

Terminal

npm install @humaner/react

Use it

page.tsx

import { HumanerChat } from "@humaner/react";

export default function SupportPage() {
  return (
    <HumanerChat
      agentId="YOUR_AGENT_PUBLIC_ID"
      baseUrl="https://yourwebsite.com"
    />
  );
}
PropTypeWhat it does
agentIdstringYour public agent ID
baseUrlstringYour dashboard origin for chat and handoff
position"bottom-right" | "bottom-left"Where the bubble sits
colorstringAccent color
greetingstringOne-off greeting override for this embed
defaultOpenbooleanOpen the panel as soon as it mounts