New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@scoped-elements/dropzone

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scoped-elements/dropzone

Dropzone.js packaged as custom elements using @open-wc/scoped-elements

latest
npmnpm
Version
0.2.7
Version published
Maintainers
1
Created
Source

@scoped-elements/dropzone

Re-export of the Dropzone.js package in a custom element to be used with @open-wc/scoped-elements.

Installation

npm i @scoped-elements/dropzone

Usage

As an sub element in your own custom element

import { DropzoneElement } from '@scoped-elements/dropzone';
import { ScopedElementsMixin } from '@open-wc/scoped-elements';

export class CustomElement extends ScopedElementsMixin(LitElement) {
  static get scopedElements() {
    return {
      'drop-zone': DropzoneElement,
    };
  }

  render() {
    return html` <drop-zone url="https://my-upload-url.com"></drop-zone> `;
  }
}

As a globally defined custom element

import { DropzoneElement } from '@scoped-elements/material-web';

customElements.define('drop-zone', DropzoneElement);

Documentation for the elements

As this package is just a re-export, you can find the documentation for Dropzone.js here: https://www.dropzone.dev/js/.

FAQs

Package last updated on 14 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts