PolymerElements / paper-button

A button à la Material Design
https://www.webcomponents.org/element/PolymerElements/paper-button
138 stars 64 forks source link

How to use paper button #197

Open paalss opened 1 year ago

paalss commented 1 year ago

Description

I want to start using webcomponents.org, but I fail to even render something so simple as the @polymer/paper-button component. I've followed the instructions in the docs and have no idea what I'm missing.

Expected outcome

I'm expecting the paper button element (which I've provided a raised-prop to) to look like the raised button variant in the demo:

paper-button-demo1

Actual outcome

The paper button isn't rendering. The custom element tag is ignored and my html-page just spits out its children text.

paper-button-error

Errors in console

Live Demo

https://github.com/paalss/webcomponents-demo

Steps to reproduce

  1. Clone the webcomponents-demo repository
  2. Run npm i in it
  3. Open the index.html in a browser

Browsers Affected