UNPKG

react-together-primereact

Version:

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

41 lines (27 loc) 1.24 kB
# React Together PrimeReact [![NPM version][npm-image]][npm-url] This library wraps a series of [PrimeReact](https://primereact.org/) components to make them synchronized across multiple clients. All components maintain most of their original API, so you can use them as you would use the original components. For more information about the wrapped components API, please refer to our [documentation](https://reacttogether.dev/primereact/Checkbox). ## 📦 Installation ```bash npm install react-together-primereact ``` ## 🔨 Usage ```tsx import { ColorPickerTogether } from 'react-together-primereact' export function YourComponent() { return ( <div> <h1>Color Picker</h1> <ColorPickerTogether rtKey="color-picker" /> </div> ) } ``` Looking for a component that is not supported yet? [Submit a PR](https://github.com/multisynq/react-together/pulls) or [open an issue](https://github.com/multisynq/react-together/issues/new)! ## License Licensed under the Apache License 2.0, Copyright © 2024-present Croquet Labs. See [LICENSE](./LICENSE) for more information. [npm-image]: https://img.shields.io/npm/v/react-together-primereact.svg [npm-url]: https://www.npmjs.com/package/react-together-primereact