"use client";
import { Checkbox as e } from "../ui/forms/checkboxes/Checkbox.js";
import { useState as t } from "react";
import { jsx as n } from "react/jsx-runtime";
//#region lib/examples/checkbox-demo.tsx
function r() {
	let [r, i] = t(!1), [a, o] = t("This field is required");
	return /* @__PURE__ */ n("div", {
		className: "space-y-4",
		children: /* @__PURE__ */ n(e, {
			name: "terms",
			value: "accepted",
			checked: r,
			onChange: (e, t) => {
				i(t), o(t ? "" : "This field is required");
			},
			validationStatus: a ? "error" : "default",
			errorMessage: a,
			children: "I agree to the terms and conditions"
		})
	});
}
//#endregion
export { r as default };

//# sourceMappingURL=checkbox-demo.js.map