Directory

← Back

bu-button

(no summary available)

Author

Rating

Popularity

<100

Published on webcomponents.org

bu-button

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>

Installation

npm install --save bu-button

Usage

In an html file

<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>

In a Polymer 3 element

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);

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Dependencies

  • @polymer/polymer#^3.1.0
Released
2018-12-29
Maturity
IMPORTED
License
ISC License

Compatibility

Framework
Polymer 3.0+
Browser
Browser Independent

bu-button - Vaadin Add-on Directory

(no summary available) bu-button - Vaadin Add-on Directory
[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/owner/my-element) # bu-button bu-button is a button. It has some types such as submit, google and facebook. ```html ``` ## Installation ``` npm install --save bu-button ``` ## Usage ### In an html file ``` ``` ### In a Polymer 3 element ``` import {PolymerElement, html} from '@polymer/polymer'; import './bu-button.js'; class SampleElement extends PolymerElement { static get template() { return html` `; } } customElements.define('sample-element', SampleElement); ``` ## Contributing 1. Fork it! 2. Create your feature branch: `git checkout -b my-new-feature` 3. Commit your changes: `git commit -am 'Add some feature'` 4. Push to the branch: `git push origin my-new-feature` 5. Submit a pull request :D
View on NPM
View on GitHub

bu-button version 1.0.0
### Dependencies * @polymer/polymer#^3.1.0

bu-button version 1.1.0
### Dependencies * @polymer/polymer#^3.1.0

bu-button version 1.2.0
### Dependencies * @polymer/polymer#^3.1.0

Online