Mindscape Brain Logo

MindscapeAnalytics

Where AI Meets Innovation

Loading resources...0%
AI Icon

MindscapeAnalytics

Where AI Meets Innovation

Layout Examples

Demonstrating the flexible layout system with real-world examples

Pattern 1: FlexibleSection Component

This approach uses the FlexibleSection component which handles container classes automatically. This is the recommended approach for most sections.

Simple Implementation

Just wrap your content in FlexibleSection and set fullWidth prop

Consistent Layout

Works correctly on mobile and desktop with proper padding

Propagate Props

Can pass the fullWidth prop from parent components

Pattern 2: Direct Container Classes

This approach uses the getContainerClasses utility directly. Use when you need to maintain the existing section structure.

Keep Section Tags

Maintain your existing section structure

Direct Control

Configure container options directly with parameters

Additional Options

Set noPadding and additional className options

Pattern 3: Full-Width Section

This section uses the full width of the viewport

Constrained Width Section

This section uses the default constrained width

Custom Max-Width Section

This section uses a custom max-width of xl

Pattern 4: Component Implementation

interface MyComponentProps {

fullWidth?: boolean;

// other props...

}


export function MyComponent({ fullWidth = false, ...props }: MyComponentProps) {

return (

<FlexibleSection fullWidth={fullWidth} className="...">

{/* Component content */}

</FlexibleSection>

);

}

Components should accept and propagate the fullWidth prop to enable layout consistency across the application.