@kaifusion/widget 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -49,6 +49,7 @@ function App() {
49
49
  title="KAI Assistant" // (Optional) Widget title
50
50
  position="right" // (Optional) 'left' or 'right'
51
51
  color="#526cfe" // (Optional) Main theme color hex code
52
+ icon={<span>💬</span>} // (Optional) Custom icon for the toggle button
52
53
  />
53
54
  </div>
54
55
  );
@@ -5,5 +5,6 @@ export interface KaiChatWidgetProps {
5
5
  targetUrl: string;
6
6
  position?: "left" | "right";
7
7
  color?: string;
8
+ icon?: React.ReactNode;
8
9
  }
9
- export default function KaiChatWidget({ authToken, workflowId, title, targetUrl, position, color, }: KaiChatWidgetProps): import("react/jsx-runtime").JSX.Element;
10
+ export default function KaiChatWidget({ authToken, workflowId, title, targetUrl, position, color, icon, }: KaiChatWidgetProps): import("react/jsx-runtime").JSX.Element;