import { jsx as e } from "react/jsx-runtime";
//#region lib/ui/heading/Heading.tsx
var t = (e) => Math.min(Math.max(e, 1), 6), n = ({ asDiv: n = !1, children: r, level: i = 2, ...a }) => {
	let o = n ? "div" : `h${t(i)}`, s = n ? {
		"aria-level": i,
		role: "heading"
	} : null;
	return /* @__PURE__ */ e(o, {
		...a,
		...s,
		children: r
	});
};
//#endregion
export { n as Heading };

//# sourceMappingURL=Heading.js.map