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

//#region src/switch/switchLabel.tsx
/** Displays label text within the Switch component. */
const SwitchLabel = vui((props, ref) => {
	const { className, ...rest } = props;
	const styles = useStyleConfig("Switch", useSwitchContext());
	if (styles.label.size === "xl") rest.fontSize = 20;
	return /* @__PURE__ */ jsx(t_default, {
		className: cs("vui-switchLabel", className),
		display: "flex",
		ref,
		...styles.label,
		...rest
	});
});
SwitchLabel.displayName = "SwitchLabel";

//#endregion
export { SwitchLabel };
globalThis.__vuiVersion__ = "4.0.0-beta.1"
//# sourceMappingURL=switchLabel.js.map