Hoory `react/next.js` integration!

Hoory Logo
const API = useHoory('TOKEN', { manualLoad: true });
Install it:$yarn add @hoory/react
Use it:
import React from 'react';
import { useHoory } from '@hoory/react';

export default function App() {
  const API = useHoory('WEBSITE_TOKEN');
  return (
    <div className="App">
      <button onClick={() => API.toggle() }>Toggle</button>
    </div>
  );
}
Full documentation can be found about how to use SDK here

Properties

Property on APIDescriptionValue
hasLoadedShows if widget is loaded or notfalse
baseUrlBase URL of the widget
websiteTokenWebsite token
hideMessageBubbleHide message bubblefalse
positionPosition of the widgetright
useBrowserLanguageUse browser languagefalse
typeType of the widgetstandard
launcherTitleLauncher title
showPopoutButtonShow popout buttonfalse
widgetStyleWidget stylestandard
darkModeDark modeauto
resetTriggeredReset triggeredfalse

Methods

Methods on APIDescriptionTest
setUserSet user data
popoutChatWindowPopout chat window
removeLabelRemove label from user
resetReset widget
deleteConversationCustomAttributeDelete conversation custom attribute
deleteCustomAttributeDelete custom attribute
toggleToggle widget
toggleBubbleVisibilityToggle bubble visibility
setConversationCustomAttributesSet conversation custom attributes on conversation
setCustomAttributesSet custom attributes on user
setLabelSet label to user
setLocaleSet locale
sdk.reRunRe-Run the widget

Hoory ->

Our platform ❤️

Docs ->

Find in-depth information about Hoory widget API.

Changes log ->

Get the latest news about Hoory widget.

System Status ->

Unplanned outages and incidents.