json-joy
Version:
Collection of libraries for building collaborative editing apps.
11 lines (10 loc) • 403 B
TypeScript
import * as React from 'react';
import { PeritextSurfaceState } from '../state';
import type { PeritextPlugin } from './types';
import type { Peritext } from '../../../json-crdt-extensions';
export interface PeritextViewProps {
peritext: Peritext;
plugins?: PeritextPlugin[];
onState?: (state: PeritextSurfaceState) => void;
}
export declare const PeritextView: React.FC<PeritextViewProps>;