/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
"use client";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
require("../../../_virtual/_rolldown/runtime.cjs");
const require_styles_styler = require("../../../styles/styler.cjs");
const require_components_Text = require("../../Text.cjs");
const require_components_client_Modal_UDSModalConfigProvider = require("./UDSModalConfigProvider.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
let _ariakit_react = require("@ariakit/react");
//#region src/components/client/Modal/ModalTitle.tsx
const ModalTitle = ({ children, slotProps }) => {
	const { size, variant } = require_components_client_Modal_UDSModalConfigProvider.useModalConfig();
	const classNames = { title: require_styles_styler.getStyles({
		modalSizeTitle: size,
		modalVariantTitle: variant
	}) };
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ariakit_react.DialogHeading, {
		render: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Text.Text, {
			as: "span",
			...slotProps?.root,
			className: require_styles_styler.cx(classNames.title, slotProps?.root?.className)
		}),
		children
	});
};
ModalTitle.displayName = "ModalTitle";
ModalTitle.__modalSlot = "title";
//#endregion
exports.ModalTitle = ModalTitle;
