@sylang/jot-editor
v0.1.0
Published
Jotx (.jot) editor as a controlled React component — wraps @jotx-labs/editor with parse/serialize and the lazy-CSS workaround so SSR hosts (TanStack Start, Next.js) can mount it without crashing.
Downloads
36
Readme
@sylang/jot-editor
Jotx (.jot) editor as a controlled React component. Wraps
@jotx-labs/editor with
parse/serialize helpers and the lazy-CSS workaround so SSR hosts (TanStack
Start, Next.js) can mount it without crashing during hydration.
Install
pnpm add @sylang/jot-editorUsage
import { JotEditor } from '@sylang/jot-editor'
import '@sylang/jot-editor/jotx-editor.css'
<JotEditor value={jotText} onChange={setJotText} />The CSS import is required and intentionally not bundled — keeps the JS import side-effect-free for tree-shaking, and lets hosts override styles.
Part of @sylang-core.
Apache-2.0.
