UNPKG

@multisynq/react-together-primereact

Version:

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

22 lines (21 loc) 519 B
import { jsx as t, Fragment as n } from "react/jsx-runtime"; import { useStateTogether as u } from "@multisynq/react-together"; import { TriStateCheckbox as i } from "primereact/tristatecheckbox"; function f({ rtKey: o, ...e }) { const [a, r] = u(o, !1); return /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t( i, { ...e, onChange: (l) => r(l.value), value: a, className: `outline outline-1 outline-slate-400 rounded ${e.className}` } ) }); } export { f as default };