
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
@yext/chat-headless-react
Advanced tools
Chat Headless React is the official React UI Bindings layer for Chat Headless
ChatHeadlessProviderChat Headless React includes an <ChatHeadlessProvider /> component, which takes in a ChatConfig, instantiate a ChatHeadless instance and makes it available to the rest of your app:
import { ChatHeadlessProvider, ChatConfig } from "@yext/chat-headless-react";
const config: ChatConfig = {
botId: "BOT_ID",
apiKey: "API_KEY",
};
function MyApp() {
return (
<ChatHeadlessProvider config={config}>
{/* Add components that use Chat as children */}
<MyComponent />
</ChatHeadlessProvider>
);
}
useChatStateuseChatState reads a value from the ChatState state and subscribes to updates.
import { useChatState } from "@yext/chat-headless-react";
export default function MyComponent() {
const isLoadingStatus = useChatState((state) => state.conversation.isLoading);
return <div>{`Loading Status: ${isLoadingStatus}`}</div>;
}
useChatActionsuseChatActions allows you to dispatch actions using the ChatHeadless instance.
import { useChatActions } from "@yext/chat-headless-react";
import { useCallback } from "react";
function MyComponent() {
const actions = useChatActions();
const onClick = useCallback(() => {
actions.setChatLoadingStatus(true);
}, [actions]);
return <button onClick={onClick}>Click Me</button>;
}
FAQs
the official React UI Bindings layer for Chat Headless
The npm package @yext/chat-headless-react receives a total of 293 weekly downloads. As such, @yext/chat-headless-react popularity was classified as not popular.
We found that @yext/chat-headless-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 84 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.