import * as r from "react";
import c from "../../../../../../../../../_virtual/index9.js";
import { Slot as l } from "../../../../../../../@radix-ui_react-slot@1.1.0_@types_react@18.3.3_react@18.3.0-canary-3d9b20132-20240124/node_modules/@radix-ui/react-slot/dist/index.js";
import { headingPropDefs as f } from "./heading.props.js";
import { extractProps as p } from "../helpers/extract-props.js";
import { marginPropDefs as d } from "../props/margin.props.js";
const g = r.forwardRef((e, o) => {
  const { children: a, className: t, asChild: m, as: s = "h1", color: i, ...n } = p(e, f, d);
  return r.createElement(l, { "data-accent-color": i, ...n, ref: o, className: c("rt-Heading", t) }, m ? a : r.createElement(s, null, a));
});
g.displayName = "Heading";
export {
  g as Heading
};
//# sourceMappingURL=heading.js.map
