<my-element>

A web component just for me.

<pdf-viewer>

<pdf-viewer> is an awesome element. It's a great introduction to building web components with LitElement, with nice documentation site as well.

As easy as HTML

<pdf-viewer> is just an HTML element. You can it anywhere you can use HTML!

<pdf-viewer></pdf-viewer>

Configure with attributes

<pdf-viewer> can be configured with attributed in plain HTML.

<pdf-viewer name="HTML"></pdf-viewer>

Declarative rendering

<pdf-viewer> can be used with declarative rendering libraries like Angular, React, Vue, and lit-html

import {html, render} from 'lit-html';

const name="lit-html";

render(html`
<h2>This is a &lt;pdf-viewer&gt;</h2>
<pdf-viewer .name=${name}></pdf-viewer>
`
, document.body);

This is a <pdf-viewer>