UNPKG

radh-ui

Version:

Stencil Component Starter

19 lines (18 loc) 630 B
import { r as registerInstance, h } from './index-a9700b09.js'; var radhCounterCss = "radh-counter{}"; var RadhCounter = /** @class */ (function () { function RadhCounter(hostRef) { var _this = this; registerInstance(this, hostRef); this.count = 0; this.increment = function () { _this.count = _this.count + 1; }; } RadhCounter.prototype.render = function () { return (h("div", null, h("radh-button", { onClick: this.increment }, this.count))); }; return RadhCounter; }()); RadhCounter.style = radhCounterCss; export { RadhCounter as radh_counter };