UNPKG

@lobehub/ui

Version:

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

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