Drop target styling
Highlight the zones that can accept the item you are dragging.
Default
The default outline
- Item 1
- Item 2
Classes
dropTargetClasses
- Item 3
- Item 4
Style
dropTargetStyle
- Item 5
- Item 6
While an item is dragged, every zone that can accept it gets the outline from dropTargetStyle, and the zones that cannot stay plain. The first list keeps the default outline. The second adds dropTargetClasses (Tailwind classes here) and sets dropTargetStyle to an empty object, which turns the default outline off. The third replaces the outline and the background through dropTargetStyle. The classes and styles are removed again when the drag ends. See the options for both settings.
The styling guide explains the drop target styles.