Skip to content

Instantly share code, notes, and snippets.

@vbkmr
Created December 21, 2019 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vbkmr/7e98ef835b49c4b430905cd7eccf5249 to your computer and use it in GitHub Desktop.
Save vbkmr/7e98ef835b49c4b430905cd7eccf5249 to your computer and use it in GitHub Desktop.
import { r as registerInstance, h } from './core-957b5e39.js';
const FancyAFButton = class {
constructor(hostRef) {
registerInstance(this, hostRef);
this.clickedCount = 0;
}
handleClick() {
this.clickedCount += 1;
}
render() {
return (h("button", null, h("span", null, this.title), h("span", null, " ", this.clickedCount)));
}
static get style() { return "button {\n position: relative;\n font-size: 18px;\n width: 200px;\n height: 50px;\n color: #000000;\n background-color: #ffffff;\n border: #000000 solid 1px;\n padding: 10px;\n transition: all 0.1s ease;\n -webkit-transition: all 0.1s ease;\n -moz-transition: all 0.1s ease;\n}\nbutton:hover {\n cursor: pointer;\n color: #ffffff;\n background-color: #000000;\n}"; }
};
export { FancyAFButton as fancy_af_button };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment