npm.io
0.1.10 • Published 3 years ago

loonds-media-library

Licence
MIT
Version
0.1.10
Deps
14
Size
806 kB
Vulns
0
Weekly
0

Media Library

This is a reusable package for media upload and download functionality in React.

Installation

To install the package, run the following command:

npm install loonds-media-library 

Usage

MediaUploader

The MediaUploader component allows you to select a file and upload it.

import { MediaUploader } from 'media-library';

function MyComponent() {
  return (
    <div>
      <MediaUploader />
    </div>
  );
}
MediaDownloader

The MediaDownloader component allows you to download a media file using a provided URL.

import { MediaDownloader } from 'media-library';

function MyComponent() {
  return (
    <div>
      <MediaDownloader url="https://example.com/media-file.jpg" />
    </div>
  );
}

Contributing

Contributions are welcome! If you have any bug fixes, improvements, or new features to add, please submit a pull request.

License

This project is licensed under the MIT License.

Keywords