LiveKit LogoDocs
Real-timeEgress/IngressCloudReference

useChatToggle

Import

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

Parameters

#
{ props }UseChatToggleProps

Returns

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

On this page

ImportParametersReturns

Previous

Chevron IconuseChat
LiveKit Logo

Product

SFU

SDKs

Cloud Dashboard

Cloud Status

GitHub Logo