"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const clsx = require("clsx");
require("react");
const useProps = require("../../core/MantineProvider/use-props/use-props.cjs");
const polymorphicFactory = require("../../core/factory/polymorphic-factory.cjs");
const Text = require("../Text/Text.cjs");
const Anchor_module_css = require("./Anchor.module.css.cjs");
const defaultProps = {
  underline: "hover"
};
const Anchor = polymorphicFactory.polymorphicFactory((props, ref) => {
  const { underline, className, unstyled, mod, ...others } = useProps.useProps(
    "Anchor",
    defaultProps,
    props
  );
  return /* @__PURE__ */ jsxRuntime.jsx(
    Text.Text,
    {
      component: "a",
      ref,
      className: clsx({ [Anchor_module_css.default.root]: !unstyled }, className),
      ...others,
      mod: [{ underline }, mod],
      __staticSelector: "Anchor",
      unstyled
    }
  );
});
Anchor.classes = Anchor_module_css.default;
Anchor.displayName = "@mantine/core/Anchor";
exports.Anchor = Anchor;
