im trying extends the paper-input component from Polymer 3 like documentation says but i cant. https://polymer-library.polymer-project.org/3.0/docs/devguide/dom-template#inherit
In the next example you can try using the snippet. The problem is the import of paper-input hasnt PaperInputElement export so i cant import. You must to see here : https://unpkg.com/@polymer/polymer/polymer-element.js?module
Could you help me?
<script type='module'>
import 'https://unpkg.com/@polymer/paper-input@3.0.1/paper-input.js?module';
import {PolymerElement, html} from 'https://unpkg.com/@polymer/polymer/polymer-element.js?module';
class DmInput extends PaperInputElement {
static get template() {
return html`
<style>
</style>
<p>hi</p>
<p>${super.template}</p>
`;
}
}
window.customElements.define('dm-input', DmInput);
</script>
<dm-input></dm-input>