'use client';

import { cn } from "../../utils/cn.mjs";
import { useFormField } from "./FormField.mjs";
import { Label } from "../Label/index.mjs";
import { jsx } from "react/jsx-runtime";

//#region src/components/Form/FormLabel.tsx
const FormLabel = ({ className, ...props }) => {
	const { error, formItemId } = useFormField();
	return /* @__PURE__ */ jsx(Label, {
		className: cn("mb-2", error && "text-error", className),
		htmlFor: formItemId,
		...props
	});
};

//#endregion
export { FormLabel };
//# sourceMappingURL=FormLabel.mjs.map