import { nothing, html } from 'lit';
import { property } from 'lit/decorators.js';
import { a as TailwindStyledElement, s as safeCustomElement } from '../../chunks/index-DluTRl1F.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 ? html`
          <label
            for=${this.forName ? this.forName : nothing}
            class="heading-inter-14-bold text-neutral-20 pb-2 block"
            >${this.label}</label
          >
        ` : nothing;
  }
};
__decorateClass([
  property({ type: String, reflect: true })
], LuksoFormLabel.prototype, "label", 2);
__decorateClass([
  property({ type: String, attribute: "for-name", reflect: true })
], LuksoFormLabel.prototype, "forName", 2);
LuksoFormLabel = __decorateClass([
  safeCustomElement("lukso-form-label")
], LuksoFormLabel);

export { LuksoFormLabel };
