"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const html_1 = require("../../../../client/html");
class Button extends html_1.default {
    constructor($props, $system) {
        super($props, $system, $system.api.document.createElement('button'), $system.style['button']);
        const { id, className, style, innerText, tabIndex, title, draggable } = this.$props;
        if (id !== undefined) {
            this.$element.id = id;
        }
        if (className !== undefined) {
            this.$element.className = className;
        }
        if (innerText) {
            this.$element.innerText = innerText;
        }
        if (tabIndex !== undefined) {
            this.$element.tabIndex = tabIndex;
        }
        if (title) {
            this.$element.title = title;
        }
    }
}
exports.default = Button;
//# sourceMappingURL=Component.js.map