react-together-ant-design
Version:
A set of ready-to-use Ant Design components that are synchronized across multiple users in real-time!
22 lines (21 loc) • 493 B
JavaScript
import { jsx as t, Fragment as n } from "react/jsx-runtime";
import { Checkbox as s } from "antd";
import { useStateTogether as h } from "react-together";
function u({
rtKey: o,
...e
}) {
const [r, a] = h(o, !1);
return /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
s,
{
...e,
onChange: (c) => a(c.target.checked || !1),
checked: r,
className: `outline outline-1 outline-gray-400 rounded ${e.className}`
}
) });
}
export {
u as default
};