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