MainContainerComponent is a React functional component that renders a responsive container
with customizable dimensions, margins, and render hooks for advanced composition.
The container's dimensions adapt to the window size based on provided width and height fractions,
and it updates dynamically on window resize or orientation changes.
Supports custom rendering of both the container and its content via renderContainer and renderContent,
enabling complete control over layout, styling, and child composition.
MainContainerComponent is a React functional component that renders a responsive container with customizable dimensions, margins, and render hooks for advanced composition. The container's dimensions adapt to the window size based on provided width and height fractions, and it updates dynamically on window resize or orientation changes.
Supports custom rendering of both the container and its content via
renderContainer
andrenderContent
, enabling complete control over layout, styling, and child composition.Component
Example
Basic Usage
Example
Custom Content Wrapper (renderContent)
Example
Custom Container Builder (renderContainer)
Example
Using in uiOverrides (MediasfuGeneric example)
Example
Advanced: Responsive Container with Media Queries