This package has been deprecated

Author message:

This component is deprecated

@advanced-rest-client/arc-file-drop-mixin
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

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

Package Sidebar

Install

npm i @advanced-rest-client/arc-file-drop-mixin

Weekly Downloads

1

Version

3.0.1

License

Apache-2.0

Unpacked Size

11.4 kB

Total Files

5

Last publish

Collaborators

  • carowright
  • jarrodek
  • twoplustwoone
  • lbauret