@mantine/dropzone package provides Dropzone
component which allows to drag and drop files from your computer or select them using
the file picker. Its purpose is to handle file selection, it does not store files state,
does not display selected files and does not upload them to the server.
use-form hook handles form state, validation,
error messages and form submission. You can integrate any input or React component
with use-form
hook using the following form object properties:
form.getValues().x
– value of the inputform.errors.x
– error message for the inputform.setFieldValue('x', value)
– function to set input valueform.setFieldError('x', 'error-message')
– function to set input error message
Using these properties you can integrate Dropzone
with use-form
hook:
Drop files here