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

    Variable DEFAULT_LAYOUTSConst

    DEFAULT_LAYOUTS: LayoutDefinition[] = ...

    Default layout definitions for the video grid.

    Includes the three built-in layouts:

    • Grid: Equal-sized tiles in a responsive grid layout
    • Speaker: Dominant speaker large with others in a filmstrip
    • Sidebar: Main speaker large with others in a vertical sidebar

    Use this constant when extending the default layouts with custom options. If you want to completely replace the layouts, create your own array without spreading this constant.

    Extend with custom layouts:

    import { DEFAULT_LAYOUTS, LayoutDefinition } from '@hiyve/react-ui';
    import { Slideshow, PictureInPicture } from '@mui/icons-material';

    const myLayouts: LayoutDefinition[] = [
    ...DEFAULT_LAYOUTS,
    { id: 'presentation', label: 'Presentation', icon: <Slideshow /> },
    { id: 'pip', label: 'Picture-in-Picture', icon: <PictureInPicture /> },
    ];

    <ControlBar layouts={myLayouts} />

    Use in internationalized applications:

    import { DEFAULT_LAYOUTS } from '@hiyve/react-ui';

    // Create localized layouts based on DEFAULT_LAYOUTS structure
    const localizedLayouts = DEFAULT_LAYOUTS.map(layout => ({
    ...layout,
    label: t(`layouts.${layout.id}`), // e.g., 'layouts.grid'
    }));

    LayoutDefinition - Interface for layout definitions