stream-chat-react
Version:
React components to create chat conversations or livestream style chat
8 lines • 450 B
TypeScript
export type TextareaCaretRect = DOMRect | null;
/**
* Returns the caret rectangle for a textarea using a mirror-measure hack.
* It clones computed styles and content into a hidden element to infer the
* caret position because textarea doesn't expose caret geometry.
*/
export declare const getTextareaCaretRect: (textarea: HTMLTextAreaElement | null, selectionEnd?: number) => TextareaCaretRect;
//# sourceMappingURL=getTextareaCaretRect.d.ts.map