GitHub

Source

useChatToggle

The useChatToggle hook provides state and functions for toggling the chat window.

Import

import { useChatToggle } from "@livekit/components-react";

Remarks

Depends on the LayoutContext to work properly.

Properties

propsReact.ButtonHTMLAttributes<HTMLButtonElement>

Returns

{
mergedProps: React.ButtonHTMLAttributes<HTMLButtonElement> & {
className: string;
onClick: () => void;
'aria-pressed': string;
'data-lk-unread-msgs': string;
};
}