collaborative-ui
Version:
React component library for building real-time collaborative editing applications.
17 lines (16 loc) • 710 B
TypeScript
import * as React from 'react';
import type { CollaborativeStr } from 'collaborative-editor';
export interface CollaborativeInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
/** Ref to the input element. */
inp?: (el: HTMLInputElement | HTMLTextAreaElement | null) => void;
/** JSON CRDT "str" node API. */
str: () => CollaborativeStr;
/**
* Whether to poll for updates the underlying <input> or <textarea> element
* in case some third-party code modifies the value of the input element.
*/
polling?: boolean;
/** Whether the input is multiline. */
multiline?: boolean;
}
export declare const CollaborativeInput: React.FC<CollaborativeInputProps>;