react-spaces
react-spaces copied to clipboard
Allow size breakpoints to be specified on spaces (i.e. to apply custom CSS classes)
Allow actions to be carried out when spaces when resized and the size hits various breakpoints.
- Apply classes based on configuration?
or
- Provide events when breakpoints reached and allow consumer to provide functionality themselves?
or
- Both
I think this would be very useful. I know the issue is quite stale but I already have a use case for this.
Do you envision only X axis breakpoints or also Y? I assume X as that's what media queries use for the most part. I've already had a fair play with this and managed to get a provider and hook playing nicely using the domRect reference in the space.