This is an internal hook. You should never need to use this hook directly. Instead, use the Flex and Grid components with responsive props (e.g., `m={{ direction: 'column' }}`), which automatically handle responsive behavior.
Features
- Automatic responsive class management
- Breakpoint-based class switching
- Optimized for performance
- Used internally by Flex and Grid
Internal usage
How it works
- Monitors window resize events
- Compares current width against breakpoints
- Applies appropriate CSS classes for the current breakpoint
- Removes classes from other breakpoints
Supported properties
- position - static, relative, absolute, fixed, sticky
- direction - row, column, row-reverse, column-reverse
- horizontal - justify-start, justify-end, justify-center, etc.
- vertical - align-start, align-end, align-center, etc.
- overflow - visible, hidden, scroll, auto
- overflowX - x-axis overflow
- overflowY - y-axis overflow
- columns - grid column count (1-12)
- flex - flex values (1-12)
- wrap - wrap, nowrap, wrap-reverse
- hide / show - responsive visibility
- top, right, bottom, left - position offsets
- align - text alignment
- scrollbar - scrollbar visibility
- pointerEvents - pointer event handling
- opacity - opacity levels
- zIndex - z-index levels
- transition - transition presets
Per-component breakpoint types
Performance
- Debounced resize handling
- Efficient class manipulation
- Minimal re-renders
- Cleanup on unmount
Related components
- Flex
- Grid