useTextSelection

Read the text the user has selected on the page.

This is custom React hooks, you need to follow the Basic Rules when you use it.

General

Select some text of this page.

APIs

useTextSelection

const useTextSelection = () => Selection | null
Edit this page on GitHub