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

OpenDropTargetProps

What a DropTarget that takes every drag takes: onDrop gets the data unknown.

  • DropTargetBaseProps
Property Type Description
accepts? undefined -
children ReactNode -
className? string Styles it while a drag it takes is over it, through its data-over attribute, such as data-[over]:ring-2.
disabled? boolean Takes no drop.
onDrop (data) => void Called with what the drag carried when it lands here.
style? CSSProperties Inline styles, such as a place worked out in rems.