Interface MainAspectComponentOptions

interface MainAspectComponentOptions {
    backgroundColor?: string;
    children: ReactNode;
    showControls?: boolean;
    containerWidthFraction?: number;
    containerHeightFraction?: number;
    defaultFraction?: number;
    updateIsWideScreen: ((isWide: boolean) => void);
    updateIsMediumScreen: ((isMedium: boolean) => void);
    updateIsSmallScreen: ((isSmall: boolean) => void);
    containerProps?: HTMLAttributes<HTMLDivElement>;
    renderContent?: ((options: {
        defaultContent: ReactNode;
        dimensions: {
            width: number;
            height: number;
        };
    }) => ReactNode);
    renderContainer?: ((options: {
        defaultContainer: ReactNode;
        dimensions: {
            width: number;
            height: number;
        };
    }) => ReactNode);
}

Properties

backgroundColor?: string
children: ReactNode
showControls?: boolean
containerWidthFraction?: number
containerHeightFraction?: number
defaultFraction?: number
updateIsWideScreen: ((isWide: boolean) => void)
updateIsMediumScreen: ((isMedium: boolean) => void)
updateIsSmallScreen: ((isSmall: boolean) => void)
containerProps?: HTMLAttributes<HTMLDivElement>
renderContent?: ((options: {
    defaultContent: ReactNode;
    dimensions: {
        width: number;
        height: number;
    };
}) => ReactNode)
renderContainer?: ((options: {
    defaultContainer: ReactNode;
    dimensions: {
        width: number;
        height: number;
    };
}) => ReactNode)