import { b as TailwindStyledElement, E, x } from '../../chunks/index-5X9ujrWL.js';
import { n } from '../../chunks/property-DfumgIL6.js';
import { s as safeCustomElement } from '../../chunks/safe-custom-element-qdGIR_v6.js';

const style = ":host {\n    display: flex\n}";

var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __decorateClass = (decorators, target, key, kind) => {
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
    if (decorator = decorators[i])
      result = (kind ? decorator(target, key, result) : decorator(result)) || result;
  if (kind && result) __defProp(target, key, result);
  return result;
};
let LuksoFormLabel = class extends TailwindStyledElement(style) {
  render() {
    return this.label ? x`
          <label
            for=${this.forName ? this.forName : E}
            class="heading-inter-14-bold text-neutral-20 pb-2 block"
            >${this.label}</label
          >
        ` : E;
  }
};
__decorateClass([
  n({ type: String, reflect: true })
], LuksoFormLabel.prototype, "label", 2);
__decorateClass([
  n({ type: String, attribute: "for-name", reflect: true })
], LuksoFormLabel.prototype, "forName", 2);
LuksoFormLabel = __decorateClass([
  safeCustomElement("lukso-form-label")
], LuksoFormLabel);

export { LuksoFormLabel };
