Browse the Source

This is a slightly more interesting example.

It demonstrates how a single drop target may accept multiple types, and how those types may be derived from props. It also demonstrates the handling of native files and URLs (try dropping them onto the last two dustbins).

This dustbin accepts: glass
This dustbin accepts: food
This dustbin accepts: paper, glass, __NATIVE_URL__
This dustbin accepts: paper, __NATIVE_FILE__
Bottle
Banana
Magazine