@react-awesome/use-selection-range

useSelectionRange tracks the input selection range.

Browse on unpkg