UNPKG

@lobehub/ui

Version:

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

27 lines (24 loc) 731 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/Input.tsx const Input$1 = memo(({ ref, variant, shadow, className, ...rest }) => { const { isDarkMode } = useThemeMode(); return /* @__PURE__ */ jsx(Input, { className: cx(variants({ shadow, variant: variant || (isDarkMode ? "filled" : "outlined") }), className), ref, variant: variant || (isDarkMode ? "filled" : "outlined"), ...rest }); }); Input$1.displayName = "Input"; var Input_default = Input$1; //#endregion export { Input_default as default }; //# sourceMappingURL=Input.mjs.map