UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

31 lines (28 loc) 846 B
'use client'; import { variants } from "./style.mjs"; import { memo } from "react"; import { jsx } from "react/jsx-runtime"; import { Input } from "antd"; import { cx, useThemeMode } from "antd-style"; //#region src/Input/TextArea.tsx const TextArea = memo(({ ref, variant, shadow, className, resize = false, style, ...rest }) => { const { isDarkMode } = useThemeMode(); return /* @__PURE__ */ jsx(Input.TextArea, { className: cx(variants({ shadow, variant: variant || (isDarkMode ? "filled" : "outlined") }), className), ref, style: { resize: resize ? void 0 : "none", ...style }, variant: variant || (isDarkMode ? "filled" : "outlined"), ...rest }); }); TextArea.displayName = "TextArea"; var TextArea_default = TextArea; //#endregion export { TextArea_default as default }; //# sourceMappingURL=TextArea.mjs.map