npm install --save @elifent/paper-avatar
<html>
<head>
<script type="module">
import "@elifent/paper-avatar/paper-avatar.js";
</script>
</head>
<body>
<paper-avatar
img="https://picsum.photos/id/1027/200"
elevation="3"
></paper-avatar>
</body>
</html>
import { PolymerElement, html } from "@polymer/polymer";
import "@elifent/paper-avatar/paper-avatar.js";
class SampleElement extends PolymerElement {
static get template() {
return html`
<paper-avatar
img="https://picsum.photos/id/1027/200"
elevation="3"
></paper-avatar>
`;
}
}
customElements.define("sample-element", SampleElement);
git clone https://github.com/elifent/paper-avatar
cd paper-avatar
npm install
npm install -g polymer-cli
polymer serve --npm
open http://127.0.0.1:<port>/components/paper-avatar/demo/
Found issues? Let me know