taeuk-test

npm upload test

Usage no npm install needed!

<script type="module">
  import taeukTest from 'https://cdn.skypack.dev/taeuk-test';
</script>

README

accordion-sidebar

A simple custom element written in [TypeScript][typescript-url] with LitElement


Version lit-element Node version MIT License

Downloads Total downloads Packagephobia Bundlephobia

Dependency Status

codebeat badge Codacy Badge Language grade: JavaScript Code of Conduct

Better element for the web

Table of contents

Pre-requisites

Installation

# Install via NPM
$ npm install accordion-sidebar

Usage

HTML (with 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 { css, html, LitElement } from 'lit-element';
import 'accordion-sidebar.js';

class MainApp extends LitElement {
  public static styles = [
    css`
    :host {
      display: block;
    }

    * {
      box-sizing: border-box;
    }
    `,
  ];

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

Contributing

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License

MIT License © TAEUK KANG