0.1.4 • Published 8 years ago

material-button-webcomponent v0.1.4

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
8 years ago

Material Button WebComponent

Experimenting with the customElements v1 spec.

Note: To use it for production, use customElements v1 polyfill and build the material-button.js to es5. Check for support here. As of now, customElements v1 is only supported on Chrome 54.

Usage

  • Install with npm npm install --save material-button-webcomponent or clone this repo.

  • Import the html inside the head

  <link rel="import" async href="./node_modules/material-button-webcomponentmaterial-button.html" />
  • Use the button wherever you want.
  <material-button elevation='2px' color='#f44336'>Click me</material-button>