Skip to content

phenax/material-button-webcomponent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Material button webcomponent made with the customElements v1 spec

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published