Skip to content

Instantly share code, notes, and snippets.

<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script type="module">
import { html, render } from 'https://unpkg.com/lit-html';
/** UNCOMMENT THE FOLLOWING AND COMMENT OUT THE IMPORT TO NOT USE LIT-HTML
const html = function(strings, ...values) {
let str = '';
import { LitElement, html } from 'lit-element';
class SimpleGreeting extends LitElement {
constructor() {
super();
this.model = {
currentThing: 'optionA',
things: [ 'optionA', 'optionB' ]
};
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test</title>
<script type="module">
import {Theme} from "@spectrum-web-components/theme/lib/index";
import {OverlayTrigger} from "@spectrum-web-components/overlay/lib/index";
import {Popover} from "@spectrum-web-components/popover/lib/index";
import {Button} from "@spectrum-web-components/button/lib/index";