react-spaces icon indicating copy to clipboard operation
react-spaces copied to clipboard

Allow size breakpoints to be specified on spaces (i.e. to apply custom CSS classes)

Open aeagle opened this issue 5 years ago • 1 comments

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

aeagle avatar Feb 03 '20 19:02 aeagle

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.

Gibbo3771 avatar Aug 20 '21 21:08 Gibbo3771