import { jsx as r } from "react/jsx-runtime";
import { $ as n } from "./RSPContexts-DLgb84PF.es.js";
import { $ as s } from "./utils-CrjF8U_E.es.js";
import { createRecipeContext as i } from "@chakra-ui/react";
const { withContext: f } = /* @__PURE__ */ i({ key: "nimbusHeading" }), m = /* @__PURE__ */ f("h2"), d = ({ ref: e, ...t }) => {
  const [o, a] = s(
    t,
    e ?? null,
    n
  );
  return /* @__PURE__ */ r(
    m,
    {
      ref: a,
      ...o,
      as: t.as || o.as,
      slot: t.slot ?? void 0
    }
  );
};
d.displayName = "Heading";
export {
  d as H
};
//# sourceMappingURL=heading-XNj70e-u.es.js.map
