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