vue-image-drop-form

0.1.6 • Public • Published

Vue Image Drop Form

A simple Vue 3 component for image file selection, drag-and-drop, and preview functionality.

Table of Contents

Installation

Install the package using npm:

npm install vue-image-drop-form

Or using yarn:

yarn add vue-image-drop-form

Usage

Here is a simple example:

import VueImageDropForm from 'vue-image-drop-form'

// In your Vue component
<VueImageDropForm label="Upload Image" @change="handleImageChange" />

Props

  • label: The label for the file input.

Events

  • change: Emitted when a file is selected or dropped. The selected File object is passed as an argument.

Running Tests

To run tests, execute the following command:

npm run test

Package Sidebar

Install

npm i vue-image-drop-form

Weekly Downloads

0

Version

0.1.6

License

MIT

Unpacked Size

6.92 kB

Total Files

5

Last publish

Collaborators

  • yiwv