MainAspectComponent is a React functional component that dynamically adjusts its dimensions based on window size and specified fractions, while updating screen size states (wide, medium, small) based on container width.
This component provides an adaptive container that resizes according to the window’s height and width, factoring in control visibility, and offers real-time updates for screen size breakpoints.
Component
Example
// Basic responsive container with breakpoint callbacks
MainAspectComponent is a React functional component that dynamically adjusts its dimensions based on window size and specified fractions, while updating screen size states (wide, medium, small) based on container width.
This component provides an adaptive container that resizes according to the window’s height and width, factoring in control visibility, and offers real-time updates for screen size breakpoints.
Component
Example
// Basic responsive container with breakpoint callbacks
Example
// Custom dimensions with control bar compensation
Example
// Custom render with dimension tracking
Example
// Override with MediasfuGeneric uiOverrides