"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
require("react");
require("clsx");
const useProps = require("../../../core/MantineProvider/use-props/use-props.cjs");
const useStyles = require("../../../core/styles-api/use-styles/use-styles.cjs");
const Box = require("../../../core/Box/Box.cjs");
const factory = require("../../../core/factory/factory.cjs");
const Input_module_css = require("../Input.module.css.cjs");
const defaultProps = {};
const InputPlaceholder = factory.factory((_props, ref) => {
  const props = useProps.useProps("InputPlaceholder", defaultProps, _props);
  const {
    classNames,
    className,
    style,
    styles,
    unstyled,
    vars,
    __staticSelector,
    variant,
    error,
    mod,
    ...others
  } = useProps.useProps("InputPlaceholder", defaultProps, props);
  const getStyles = useStyles.useStyles({
    name: ["InputPlaceholder", __staticSelector],
    props,
    classes: Input_module_css.default,
    className,
    style,
    classNames,
    styles,
    unstyled,
    rootSelector: "placeholder"
  });
  return /* @__PURE__ */ jsxRuntime.jsx(
    Box.Box,
    {
      ...getStyles("placeholder"),
      mod: [{ error: !!error }, mod],
      component: "span",
      variant,
      ref,
      ...others
    }
  );
});
InputPlaceholder.classes = Input_module_css.default;
InputPlaceholder.displayName = "@mantine/core/InputPlaceholder";
exports.InputPlaceholder = InputPlaceholder;
