UNPKG

@nexusui/components

Version:

These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.

3 lines (2 loc) 429 B
"use client"; import{jsx as o}from"react/jsx-runtime";import{useDropzone as r}from"react-dropzone";import{FileDragDropComponent as t}from"./FileDragDrop.component.js";const e=e=>{const{open:p,getRootProps:s,getInputProps:i,isDragActive:c,isDragAccept:n,isDragReject:g}=r(e.dropZoneOptions),a={open:p,getRootProps:s,getInputProps:i,isDragActive:c,isDragAccept:n,isDragReject:g};return o(t,{...e,...a})};export{e as FileDragDrop};