Better element for the web
- Java 8 (
web-component-tester
works without any issue with Java 8) - Node.js >= 10.13.0
- NPM >= 6.4.1 (NPM comes with Node.js, no separate installation is required.)
- (Optional for non-VS Code users) Syntax Highlighting for lit-html in VS Code
# Install via NPM
$ npm install really-drawer
<!-- 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>
import { html, LitElement } from '@polymer/lit-element';
import 'really-drawer.js';
class MainApp extends LitElement {
protected render() {
return html`
<my-element></my-element>
`;
}
}
MIT License © Rong Sen Ng (motss)