Drop Zone
A drop zone is an area into which one or multiple objects can be dragged and dropped.
Installation
CLI
Manual
npx hq-kit add drop-zone
Basic
DropZone provides support for mouse, keyboard, and touch interactions. Simply connect the onDrop
prop to handle all the drop actions. Additionally, you will receive real-time updates through onDropEnter
, onDropMove
, and onDropExit
events as users interact with the drop zone.
Preview
Code
Using FileTrigger
The FileTrigger
component can be used to select files from the file system, making it an excellent tool for managing files that have been dragged and dropped into the browser.
Preview
Code
Or drag and drop PNG, JPG, GIF up to 10MB