json-joy
Version:
Collection of libraries for building collaborative editing apps.
15 lines (14 loc) • 600 B
TypeScript
import * as React from 'react';
import type { Cursor } from '../../../../json-crdt-extensions/peritext/editor/Cursor';
import type { Point } from '../../../../json-crdt-extensions/peritext/rga/Point';
import type { Inline } from '../../../../json-crdt-extensions';
export interface CaretViewProps {
italic?: boolean;
point: Point<string>;
cursor: Cursor<string>;
/** Inline text slice followed after the cursor. */
fwd?: Inline<string>;
/** Inline text slice followed before the cursor. */
bwd?: Inline<string>;
}
export declare const CaretView: React.FC<CaretViewProps>;