3.0.1 • Published 5 years ago

@advanced-rest-client/arc-file-drop-mixin v3.0.1

Weekly downloads
14
License
Apache-2.0
Repository
github
Last release
5 years ago

Published on NPM

Build Status

Published on webcomponents.org

<arc-file-drop-mixin>

A mixin with common function used to drag and drop file import in Advanced REST Client.

Usage

Installation

npm install --save @advanced-rest-client/arc-file-drop-mixin

In a LitElement

import { LitElement, html } from 'lit-element';
import { ArcFileDropMixin } from '@advanced-rest-client/arc-file-drop-mixin/arc-file-drop-mixin.js';

class SampleElement extends ArcFileDropMixin(LitElement) {
  render() {
    return html`
    <h1>Drop file here</h1>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/arc-file-drop-mixin
cd arc-file-drop-mixin
npm install

Running the tests

npm test

API components

This components is a part of API components ecosystem