"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 polymorphicFactory = require("../../core/factory/polymorphic-factory.cjs");
const Center_module_css = require("./Center.module.css.cjs");
const defaultProps = {};
const Center = polymorphicFactory.polymorphicFactory((_props, ref) => {
  const props = useProps.useProps("Center", defaultProps, _props);
  const { classNames, className, style, styles, unstyled, vars, inline, mod, ...others } = props;
  const getStyles = useStyles.useStyles({
    name: "Center",
    props,
    classes: Center_module_css.default,
    className,
    style,
    classNames,
    styles,
    unstyled,
    vars
  });
  return /* @__PURE__ */ jsxRuntime.jsx(Box.Box, { ref, mod: [{ inline }, mod], ...getStyles("root"), ...others });
});
Center.classes = Center_module_css.default;
Center.displayName = "@mantine/core/Center";
exports.Center = Center;
