UNPKG

@lunalytics/ui

Version:

React based component library created to be used in Lunalytics

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