Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require_chunk = require("../../chunk-CKQMccvm.cjs");
const require_context = require("../../context-C7zDSpd_.cjs");
let clsx = require("clsx");
clsx = require_chunk.__toESM(clsx);
let react = require("react");
react = require_chunk.__toESM(react);
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/TextArea/TextArea.tsx
const TextArea = (0, react.forwardRef)((props, ref) => {
	const { className, rows = 3, hasError, ...rest } = props;
	const ctx = require_context.useFormControlContext();
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("textarea", {
		ref,
		className: (0, clsx.default)("openui-textarea", className, { "openui-textarea-error": hasError ?? ctx?.hasError ?? false }),
		...rest,
		rows
	});
});
TextArea.displayName = "TextArea";
//#endregion
exports.TextArea = TextArea;

//# sourceMappingURL=index.cjs.map