"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const html_1 = require("../../../../client/html");
class Label extends html_1.default {
    constructor($props, $system) {
        super($props, $system, $system.api.document.createElement('label'), $system.style['label']);
        const { id, className, 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 !== undefined) {
            this.$element.title = title;
        }
        if (draggable !== undefined) {
            this.$element.setAttribute('draggable', draggable.toString());
        }
    }
}
exports.default = Label;
//# sourceMappingURL=Component.js.map