import { cs } from "../utils/styles.js";
import { useStyleConfig } from "../core/theme.js";
import vui from "../core/vui.js";
import { useButtonContext } from "./context.js";
import T from "../t/t.js";
import { jsx } from "react/jsx-runtime";

//#region src/button/buttonText.tsx
/** Displays the text label of the button. */
const ButtonText = vui((props, ref) => {
	const { className, ...rest } = props;
	const styles = useStyleConfig("Button", useButtonContext());
	return /* @__PURE__ */ jsx(T, {
		className: cs("vui-buttonText", className),
		fontSize: "inherit",
		ref,
		...styles.text,
		...rest
	});
});
ButtonText.displayName = "ButtonText";

//#endregion
export { ButtonText as default };
globalThis.__vuiVersion__ = "4.0.3"
//# sourceMappingURL=buttonText.js.map