import { jsxs as p, jsx as s } from "react/jsx-runtime";
import { t as o } from "../../classix-DG18itHa.js";
import { u } from "../../utils--n2yqjCy.js";
import { i as t } from "../../styles.module-BUYR37kC.js";
import '../../assets/index44.css';const l = "_textarea_19s8w_5", d = {
  textarea: l
}, _ = ({
  label: e,
  maxRows: n = 12,
  minRows: m = 3,
  required: a,
  value: r,
  ...c
}) => {
  const {
    touched: x,
    onBlur: i
  } = u(r === "");
  return /* @__PURE__ */ p("label", { "data-component": "textarea", children: [
    e && /* @__PURE__ */ s("span", { className: o(a && t.required), children: e }),
    /* @__PURE__ */ s("textarea", { className: o(t.input, d.textarea, x && t.touched), onBlur: i, ...c, required: a, style: {
      "--min-rows": m,
      "--max-rows": n
    }, value: r })
  ] });
};
export {
  _ as Textarea
};
//# sourceMappingURL=index.js.map
