bu-button is a button. It has some types such as submit, google and facebook.
<bu-button submit type="button" name="login" text="login"></bu-button>
<bu-button google type="button" text="Google Login"></bu-button>
<bu-button facebook type="button" text="Facebook Login"></bu-button>
npm install --save bu-button
<html>
<head>
<script type="module">
import './bu-button.js';
</script>
</head>
<body>
<bu-button submit type="button" name="login" text="login"></bu-button>
<bu-button google type="button" text="Google Login"></bu-button>
<bu-button facebook type="button" text="Facebook Login"></bu-button>
</body>
</html>
import {PolymerElement, html} from '@polymer/polymer';
import './bu-button.js';
class SampleElement extends PolymerElement {
static get template() {
return html`
<bu-button submit type="button" name="login" text="login"></bu-button>
<bu-button google type="button" text="Google Login"></bu-button>
<bu-button facebook type="button" text="Facebook Login"></bu-button>
`;
}
}
customElements.define('sample-element', SampleElement);
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D