GitHub

Source

FocusToggle

The FocusToggle puts the ParticipantTile in focus or removes it from focus.

Import

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

Remarks

This component needs to live inside LayoutContext to work properly.

Usage

<ParticipantTile>
<FocusToggle />
</ParticipantTile>

Properties

trackRef?TrackReferenceOrPlaceholder

(Optional)

deprecatedparticipant?Participant

(Optional)

caution:

This parameter will be removed in a future version use trackRef instead.

deprecatedtrackSource?Track.Source

(Optional)

caution:

This parameter will be removed in a future version use trackRef instead.