@replyke/ui-core-react-js
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
9 lines (8 loc) • 310 B
TypeScript
declare function useTextareaCursorIndicator({ textAreaRef, }: {
textAreaRef: React.RefObject<HTMLTextAreaElement | null>;
}): {
textAreaRef: import("react").RefObject<HTMLTextAreaElement | null>;
cursorPosition: number;
isSelectionActive: boolean;
};
export default useTextareaCursorIndicator;