UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

23 lines (22 loc) 1.3 kB
import * as React from 'react'; import type { TrackReferenceOrPlaceholder } from '@livekit/components-core'; import type { ParticipantClickEvent } from '@livekit/components-core'; export type FocusLayoutContainerProps = React.HTMLAttributes<HTMLDivElement>; /** * The `FocusLayoutContainer` is a layout component that expects two children: * A small side component: In a video conference, this is usually a carousel of participants * who are not in focus. And a larger main component to display the focused participant. * For example, with the `FocusLayout` component. */ export declare function FocusLayoutContainer(props: FocusLayoutContainerProps): JSX.Element; export declare function FocusLayoutContainerNoParticipants(props: FocusLayoutContainerProps): JSX.Element; export interface FocusLayoutProps extends React.HTMLAttributes<HTMLElement> { /** The track to display in the focus layout. */ trackRef?: TrackReferenceOrPlaceholder; disableTileFocusToggle?: boolean; onParticipantClick?: (evt: ParticipantClickEvent) => void; } /** * The `FocusLayout` component is just a light wrapper around the `ParticipantTile` to display a single participant. */ export declare function FocusLayout({ trackRef, disableTileFocusToggle, ...htmlProps }: FocusLayoutProps): JSX.Element;