Skip to content

Commit

Permalink
change text when file is over dropzone
Browse files Browse the repository at this point in the history
  • Loading branch information
radek00 committed Jul 25, 2023
1 parent c7bda99 commit 17ae64d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const onDrop = (files: File[] | null) => {
emit("onFielsChange", files);
};
const { isOverDropZone } = useDropZone(fileDropZone, {onDrop});
const { isOverDropZone } = useDropZone(fileDropZone, { onDrop });
</script>

<template>
Expand All @@ -33,9 +33,12 @@ const { isOverDropZone } = useDropZone(fileDropZone, {onDrop});
>
<div class="flex flex-col items-center justify-center pt-5 pb-6">
<UploadIcon></UploadIcon>
<p class="mb-2 text-sm text-gray-500 dark:text-gray-400">
<p v-if="!isOverDropZone" class="mb-2 text-sm text-gray-400">
<span class="font-semibold">Click to upload</span> or drag and drop
</p>
<p v-else class="mb-2 text-sm text-gray-400">
<span class="font-semibold">Drop files to upload</span>
</p>
</div>
<input
@change="
Expand Down

0 comments on commit 17ae64d

Please sign in to comment.