UNPKG

@lunalytics/ui

Version:

React based component library created to be used in Lunalytics

26 lines (25 loc) 837 B
import { jsxs as x, Fragment as i, jsx as a } from "react/jsx-runtime"; import { c as d } from "../../index-2w0W-O47.js"; import '../../assets/textarea.css';const u = ({ label: e, error: r, id: s = "text-input", disableResize: l = !1, shortDescription: t, content: n, ...c }) => { const m = d("luna-textarea", { "luna-textarea-resize": l }); return /* @__PURE__ */ x(i, { children: [ e && /* @__PURE__ */ a("label", { className: "luna-textarea-label", children: e }), t && /* @__PURE__ */ a("div", { className: "luna-textarea-description", children: t }), /* @__PURE__ */ a("textarea", { className: m, id: s, ...c, children: n }), r && /* @__PURE__ */ a("span", { className: "luna-textarea-error", id: `error-${s}`, children: r }) ] }); }; u.displayName = "Textarea"; export { u as default };