SubAspectComponent - A responsive secondary aspect container that scales with viewport dimensions.
This component provides a viewport-aware container for secondary content areas, automatically calculating
dimensions based on window size and control visibility. It's designed to complement the main content area
with flexible sizing and control-aware height adjustments.
Key Features:
Viewport Scaling: Automatically scales based on window dimensions with configurable fractions
Control-Aware Height: Adjusts height based on control bar visibility
Responsive Updates: Listens to window resize events for dynamic dimension updates
Fractional Sizing: Width and height calculated as fractions of viewport dimensions
Default Fraction: Fallback height fraction when controls are visible
Background Customization: Configurable background color for container
Render Hooks: Custom rendering for container and content
HTML Attributes: Granular control over container element attributes
SSR Compatible: Safe handling of server-side rendering scenarios
Children Support: Renders any child components within the scaled container
Flexible Styling: Custom styles via containerProps and render hooks
Zero Height Option: Can render with zero height when controls are hidden
SubAspectComponent - A responsive secondary aspect container that scales with viewport dimensions.
This component provides a viewport-aware container for secondary content areas, automatically calculating dimensions based on window size and control visibility. It's designed to complement the main content area with flexible sizing and control-aware height adjustments.
Key Features:
Component
Example
// Basic usage for secondary content area
Example
// Custom styled with dynamic control visibility
Example
// Analytics tracking for resize events
Example
// Integration with MediasfuGeneric using uiOverrides