LiveKit LogoDocs
Real-timeEgress/IngressCloudReference

useLayoutContext

Ensures that a layout context is provided via context. If no layout context is provided, an error is thrown.

Import

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

Returns

LayoutContextType;

On this page

ImportReturns

Previous

Chevron IconuseIsSpeaking
LiveKit Logo

Product

SFU

SDKs

Cloud Dashboard

Cloud Status

GitHub Logo