UNPKG

@react-awesome/use-selection-range

Version:

useSelectionRange tracks the input selection range.

13 lines 351 B
export type UseSelectionRangeOpts = { initialPosition?: { start: number; end: number; }; }; export declare const useSelectionRange: (inputEl?: HTMLElement | null, { initialPosition }?: UseSelectionRangeOpts) => { caret: { start: number; end: number; }; }; //# sourceMappingURL=useSelectionRange.d.ts.map