moveable icon indicating copy to clipboard operation
moveable copied to clipboard

Ability to change look of the movable component dynamically

Open milosponj opened this issue 3 years ago • 1 comments

Environments

  • Framework name: React
  • Framework version: 17
  • Moveable Component version: 0.30.1 (react-moveable)

Description

I understand there's a way to add custom CSS for the movable component, but is there a way to make it different during runtime?

The concrete case I'm trying to solve is to make the movable-line divs red whenever they are intersecting with other divs.

milosponj avatar Nov 12 '21 22:11 milosponj

@milosponj

It seems difficult to change css at runtime.

There seems to be a way to directly change the style or add css directly.

daybrush avatar Nov 15 '21 17:11 daybrush