You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// In theme or sx proptheme.breakpoints.up('md')// >= 900pxtheme.breakpoints.down('md')// < 900pxtheme.breakpoints.only('md')// 900–1199pxtheme.breakpoints.between('sm','lg')// 600–1199px
Common Responsive Patterns
// Show on desktop only (hide on mobile)<Boxsx={{display: {xs: 'none',md: 'block'}}}>
Desktop content
</Box>// Show on mobile only (hide on desktop)<Boxsx={{display: {xs: 'block',md: 'none'}}}>Mobilecontent</Box>// Stack on mobile, row on desktop<Boxsx={{flexDirection: {xs: 'column',md: 'row'}}}><Item/><Item/></Box>// Full width on mobile, half on desktop<Boxsx={{width: {xs: '100%',md: '50%'}}}>Content</Box>// Responsive padding<Boxsx={{p: {xs: 4,md: 8}}}>{/* 8px mobile, 16px desktop */}
Content
</Box>