import { Host, h } from "@stencil/core";
import { BEM } from "../../../utils/bem";
export class DataLabel {
    constructor() {
        /**
         * If `true` an asterix is added after the label.
         */
        this.required = false;
    }
    render() {
        return (h(Host, { key: '114f7b7b26f2cc4a0c4ba430df1d3d17f4df786a', class: Object.assign({}, BEM.block('data-label').class()) }, h("slot", { key: 'bba812f478c14efa78880304b42bd8a9d91a3187' }), this.required ? '*' : ''));
    }
    static get is() { return "bal-data-label"; }
    static get properties() {
        return {
            "required": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": "If `true` an asterix is added after the label."
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "required",
                "defaultValue": "false"
            }
        };
    }
}
