Skip to content
zenui/react-hooks

useTextSelection

Track the text the user has selected and where it is on screen, optionally limited to one container. Use it for quote, share or highlight toolbars.

Level
Intermediate
Since
v2.1.0
import {useTextSelection} from '@zenuilabs/react-hooks';
Loading demo_

More in Events & DOM