Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/react-dropzone/react-dropzone
/ functions
Functions
69 in github.com/react-dropzone/react-dropzone
⨍
Functions
69
◇
Types & classes
28
↓ 55 callers
Function
createDtWithFiles
* createDtWithFiles creates a mock data transfer object that can be used for drop events * @param {File[]} files * @param {object} options * @param
src/index.spec.js:3782
↓ 11 callers
Function
createFile
(name, size, type)
src/utils/index.spec.js:617
↓ 10 callers
Function
composeEventHandlers
(...fns)
src/utils/index.js:211
↓ 9 callers
Function
drainPendingTimers
* drainPendingTimers just runs pending timers wrapped in act() to avoid * getting warnings from react about side effects that happen async. * * Thi
src/index.spec.js:3765
↓ 8 callers
Function
createThenable
* createThenable creates a Promise that can be controlled from outside its inner scope
src/index.spec.js:3825
↓ 8 callers
Function
focusWindow
* focusWindow triggers focus on the window
src/index.spec.js:3772
↓ 7 callers
Function
isDefined
(value)
src/utils/index.js:114
↓ 6 callers
Function
composeHandler
(fn)
src/index.js:923
↓ 5 callers
Function
createFile
* createFile creates a mock File object * @param {string} name * @param {number} size * @param {string} type
src/index.spec.js:3812
↓ 5 callers
Function
isEvtWithFiles
(event)
src/utils/index.js:166
↓ 4 callers
Function
composeDragHandler
(fn)
src/index.js:931
↓ 4 callers
Function
fn
()
src/index.spec.js:523
↓ 4 callers
Function
isPropagationStopped
(event)
src/utils/index.js:157
↓ 4 callers
Function
stopPropagation
(event)
src/index.js:935
↓ 4 callers
Function
ui
(maxFiles)
src/index.spec.js:2979
↓ 3 callers
Function
collectEventListenerCalls
(spy)
src/index.spec.js:562
↓ 3 callers
Function
composeKeyboardHandler
(fn)
src/index.js:927
↓ 3 callers
Function
useDropzone
(props = {})
src/index.js:432
↓ 2 callers
Function
createFileSystemFileHandle
* createFileSystemFileHandle creates a mock [FileSystemFileHandle](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileHandle) * @param {F
src/index.spec.js:3802
↓ 2 callers
Function
fileAccepted
(file, accept)
src/utils/index.js:90
↓ 2 callers
Function
fileMatchSize
(file, minSize, maxSize)
src/utils/index.js:101
↓ 2 callers
Function
getTooLargeRejectionErr
(maxSize)
src/utils/index.js:33
↓ 2 callers
Function
getTooSmallRejectionErr
(minSize)
src/utils/index.js:42
↓ 2 callers
Function
isMIMEType
(v)
src/utils/index.js:331
↓ 2 callers
Function
matchToFiles
(fileList, files)
src/index.spec.js:2594
↓ 2 callers
Function
validator
(file)
src/index.spec.js:3659
↓ 1 callers
Function
acceptPropAsAcceptAttr
(accept)
src/utils/index.js:282
↓ 1 callers
Function
allFilesAccepted
({ files, accept, minSize, maxSize, multiple, maxFiles, validator, })
src/utils/index.js:130
↓ 1 callers
Function
canUseFileSystemAccessAPI
()
src/utils/index.js:226
↓ 1 callers
Function
getAcceptedFiles
(node)
src/index.spec.js:2587
↓ 1 callers
Function
getInvalidTypeRejectionErr
(accept = "")
src/utils/index.js:22
↓ 1 callers
Function
getRejectedFiles
(node)
src/index.spec.js:2589
↓ 1 callers
Function
getRejectedFilesErrors
(node)
src/index.spec.js:2591
↓ 1 callers
Function
isAbort
(v)
src/utils/index.js:303
↓ 1 callers
Function
isDataTransferItemWithEmptyType
(file)
src/utils/index.js:73
↓ 1 callers
Function
isEdge
(userAgent)
src/utils/index.js:193
↓ 1 callers
Function
isExt
(v)
src/utils/index.js:346
↓ 1 callers
Function
isIe
(userAgent)
src/utils/index.js:187
↓ 1 callers
Function
isIeOrEdge
(userAgent = window.navigator.userAgent)
src/utils/index.js:197
↓ 1 callers
Function
isSecurityError
(v)
src/utils/index.js:317
↓ 1 callers
Function
matchToErrorCode
(errorList, code)
src/index.spec.js:2598
↓ 1 callers
Function
pickerOptionsFromAccept
(accept)
src/utils/index.js:237
Function
Dropzone
({ children, ...opts }: DropzoneProps)
typings/tests/hook.tsx:4
Function
FileList
({ files = [] })
src/index.spec.js:2560
Function
RejectedFileList
({ fileRejections = [] })
src/index.spec.js:2570
Method
children
(state: DropzoneState)
typings/react-dropzone.d.ts:11
Function
get
()
src/index.spec.js:3815
Function
get
(t, p)
src/utils/index.spec.js:574
Function
isKindFile
(item)
src/utils/index.js:178
Function
noop
()
src/index.js:1101
Function
onDocumentDragEnd
()
src/index.js:568
Function
onDocumentDragEnter
(event)
src/index.js:544
Function
onDocumentDragLeave
(event)
src/index.js:555
Function
onDocumentDragOver
(event)
src/utils/index.js:183
Function
onDocumentDrop
(event)
src/index.js:519
Function
onDocumentDropGlobal
()
src/index.js:573
Function
onWindowFocus
()
src/index.js:495
Function
reducer
* @param {DropzoneState} state * @param {{type: string} & DropzoneState} action * @returns {DropzoneState}
src/index.js:1050
Method
render
()
src/index.spec.js:500
Method
render
()
typings/tests/all.tsx:5
Method
render
()
typings/tests/events.tsx:5
Method
render
()
typings/tests/accept.tsx:10
Method
render
()
typings/tests/basic.tsx:14
Method
render
()
typings/tests/plugin.tsx:10
Method
render
()
typings/tests/plugin.tsx:27
Method
render
()
typings/tests/plugin.tsx:44
Method
render
()
typings/tests/plugin.tsx:61
Method
render
()
typings/tests/plugin.tsx:78
Function
setRef
(ref)
src/index.spec.js:352