UNPKG

@veracity/vui

Version:

Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.

29 lines (27 loc) 820 B
import { cs } from "../utils/styles.js"; import { useStyleConfig } from "../core/theme.js"; import vui from "../core/vui.js"; import { Icon } from "../icon/icon.js"; import { useInputContext } from "./context.js"; import { jsx } from "react/jsx-runtime"; //#region src/input/inputIcon.tsx /** Displays an icon within the Input. */ const InputIcon = vui((props, ref) => { const { className, ...rest } = props; const mergedProps = { ...useInputContext(), ...props }; const styles = useStyleConfig("Input", mergedProps); return /* @__PURE__ */ jsx(Icon, { className: cs("vui-inputIcon", className), ref, ...styles.icon, ...rest }); }); InputIcon.displayName = "InputIcon"; //#endregion export { InputIcon, InputIcon as default }; globalThis.__vuiVersion__ = "5.3.1" //# sourceMappingURL=inputIcon.js.map