UNPKG

@multisynq/react-together-primereact

Version:

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

11 lines (10 loc) 331 B
import { jsx as n } from "react/jsx-runtime"; import { useStateTogether as u } from "@multisynq/react-together"; import { Knob as m } from "primereact/knob"; function i({ rtKey: e, ...o }) { const [t, r] = u(e, 0); return /* @__PURE__ */ n(m, { ...o, value: t || 0, onChange: (a) => r(a.value) }); } export { i as default };