refactor: Some improvements for File input component
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<FileInput v-model="file" label="Upload file">
|
||||
<p class='!mt-1 text-sm text-gray-500 dark:text-gray-300'>SVG, PNG, JPG or GIF (MAX. 800x400px).</p>
|
||||
<p class="!mt-1 text-sm text-gray-500 dark:text-gray-300">SVG, PNG, JPG or GIF (MAX. 800x400px).</p>
|
||||
</FileInput>
|
||||
</div>
|
||||
</template>
|
||||
@@ -10,5 +10,5 @@
|
||||
import FileInput from '../../../../src/components/FileInput/FileInput.vue'
|
||||
import { ref } from 'vue'
|
||||
|
||||
const file = ref('')
|
||||
const file = ref(null)
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user