import { jsx } from "react/jsx-runtime";
import "react";
import "clsx";
import { polymorphicFactory } from "../../core/factory/polymorphic-factory.mjs";
import { Input } from "../Input/Input.mjs";
import { useInputProps } from "../Input/use-input-props.mjs";
const defaultProps = {
  __staticSelector: "InputBase",
  withAria: true
};
const InputBase = polymorphicFactory((props, ref) => {
  const { inputProps, wrapperProps, ...others } = useInputProps("InputBase", defaultProps, props);
  return /* @__PURE__ */ jsx(Input.Wrapper, { ...wrapperProps, children: /* @__PURE__ */ jsx(Input, { ...inputProps, ...others, ref }) });
});
InputBase.classes = { ...Input.classes, ...Input.Wrapper.classes };
InputBase.displayName = "@mantine/core/InputBase";
export {
  InputBase
};
