Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

DropTarget

DropTarget<Data>(props): ReactNode

Where a Draggable lands. It sets data-over while a drag it takes is over it, and calls onDrop when that drag lands, through whatever stands over it, such as a window’s dimmed screen. It needs the dragAndDrop plugin in the Game’s plugins.

Type Parameter
Data
Parameter Type
props GuardedDropTargetProps<Data>

ReactNode

DropTarget(props): ReactNode

Where a Draggable lands. It sets data-over while a drag it takes is over it, and calls onDrop when that drag lands, through whatever stands over it, such as a window’s dimmed screen. It needs the dragAndDrop plugin in the Game’s plugins.

Parameter Type
props OpenDropTargetProps

ReactNode

DropTarget<Data>(props): ReactNode

Where a Draggable lands. It sets data-over while a drag it takes is over it, and calls onDrop when that drag lands, through whatever stands over it, such as a window’s dimmed screen. It needs the dragAndDrop plugin in the Game’s plugins.

Type Parameter
Data
Parameter Type
props DropTargetProps<Data>

ReactNode