UNPKG

react-together-ant-design

Version:

A set of ready-to-use Ant Design components that are synchronized across multiple users in real-time!

21 lines (20 loc) 364 B
import { jsx as a } from "react/jsx-runtime"; import { Checkbox as h } from "antd"; import { useStateTogether as f } from "react-together"; function i({ rtKey: e, ...t }) { const [o, r] = f(e, !1); return /* @__PURE__ */ a( h, { ...t, checked: o, onChange: (c) => r(c.target.checked || !1) } ); } export { i as default };