use-text-selection
Returns current selected text on the page
Source
Docs
PackageIcon
Usage
The use-text-selection hook returns the current text selection:
Select some text here or anywhere on the page and it will be displayed below
Selected text:
Returns current selected text on the page
Source
Docs
PackageIcon
The use-text-selection hook returns the current text selection: