Skip to content

Latest commit

 

History

History
150 lines (118 loc) · 5.97 KB

README.md

File metadata and controls

150 lines (118 loc) · 5.97 KB

really-drawer

Really drawer element in LitElement


Version Built with lit-element MIT License

Downloads Total downloads Packagephobia Bundlephobia

Build Status Dependency Status

codebeat badge Codacy Badge Code of Conduct

Better element for the web

Table of contents

Pre-requisites

Installation

# Install via NPM
$ npm install really-drawer

Usage

HTML (w/ native ES modules)

<!-- For the sake of brevity, the HTML below is just for reference -->
<!doctype html>
<html>
  <head>
    <!-- Native ES modules -->
    <script type="module" src="/path/to/my-element.js"></script>
  </head>

  <body>
    <!-- Element declaration -->
    <my-element></my-element>
  </body>
</html>

JS/ TS file (w/ native ES modules)

import { html, LitElement } from '@polymer/lit-element';
import 'really-drawer.js';

class MainApp extends LitElement {
  protected render() {
    return html`
      <my-element></my-element>
    `;
  }
}

License

MIT License © Rong Sen Ng (motss)