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
props
React.ButtonHTMLAttributes<HTMLButtonElement>
Returns
{mergedProps: React.ButtonHTMLAttributes<HTMLButtonElement> & {className: string;onClick: () => void;'aria-pressed': string;'data-lk-unread-msgs': string;};}