Work in progress. These docs describe Spawnite at launch, and some parts are still being built.
| Property |
Type |
Description |
children |
ReactNode |
- |
className? |
string |
- |
data |
Data |
What the drag carries, which a DropTarget’s accepts reads and its onDrop takes. |
disabled? |
boolean |
Takes no drag, and leaves a press to its children. |
onDragEnd? |
(end) => void |
Called when its drag ends, dropped or not, such as to clear a slot dragged off its bar. |
preview? |
ReactNode |
Shown under the pointer while dragged, in place of a copy of the children, such as an item’s icon for a row of the bag. |
style? |
CSSProperties |
Inline styles, such as a place worked out in rems. |