@logo-elements/button
Version:
Logo Elements Design System Button library is a web component library which is extended from Vaadin Button Web Component.
36 lines (34 loc) • 899 B
JavaScript
import {html, PolymerElement} from '@polymer/polymer/polymer-element.js';
import { Button } from '@vaadin/button';
/**
* # @logo-elements/button
*
* An accessible and customizable button that allows users to perform actions.
*
* [](https://www.npmjs.com/package/@logo-elements/button)
*
*
* ```html
* <logo-elements-button>Press me</logo-elements-button>
* ```
*
* ## Installation
*
* Install the component:
*
* ```sh
* npm i @logo-elements/button --save
* ```
*
* Once installed, import the component in your application:
*
* ```js
* import '@logo-elements/button';
* ```
*/
class LogoElementsButton extends Button {
static get is() {
return 'logo-elements-button';
}
}
if (!window.customElements.get(LogoElementsButton.is)) { window.customElements.define(LogoElementsButton.is, LogoElementsButton); }