Skip to content

Installation

Plim is published as a set of @plim/* packages on npm. Install the layers your app needs.

Terminal window
pnpm add @plim/core @plim/editor @plim/markdown
Terminal window
pnpm add @plim/core @plim/editor @plim/markdown @plim/react react react-dom

@plim/react declares react and react-dom (>=18) as peer dependencies, so you provide them from your app.

The editor ships its own stylesheet. Import it once at your app entry:

import '@plim/editor/styles.css';

If you use comments, also import the comments stylesheet (both are overridable via CSS variables):

import '@plim/collaboration/comments.css';

If you use custom emoji, import the mojis stylesheet too:

import '@plim/mojis/mojis.css';

These are independent and can be added later as needed:

Next: head to the Quickstart.