Hiyve Components - v1.0.0
    Preparing search index...

    Interface LocalVideoTileRenderProps

    Render props for advanced customization of LocalVideoTile. Allows complete control over specific rendered elements and behaviors.

    <LocalVideoTile
    showTimer={true}
    roomStartTime={new Date()}
    renderProps={{
    formatDuration: (seconds) => {
    const hours = Math.floor(seconds / 3600);
    const minutes = Math.floor((seconds % 3600) / 60);
    return `${hours}h ${minutes}m`;
    },
    renderOverlay: () => <CustomBadge />
    }}
    />
    interface LocalVideoTileRenderProps {
        formatDuration?: (seconds: number) => string;
        renderOverlay?: () => ReactNode;
    }
    Index

    Properties

    formatDuration?: (seconds: number) => string

    Custom formatter for the room duration timer.

    Type Declaration

      • (seconds: number): string
      • Parameters

        • seconds: number

          Elapsed seconds since room start

        Returns string

        Formatted duration string

    renderOverlay?: () => ReactNode

    Render additional overlay content on the tile.

    Type Declaration

      • (): ReactNode
      • Returns ReactNode

        Custom overlay React node