# useTextSelection > Track the text the user has currently selected on the page. - Category: DOM - Package: `hookli` (install with `npm i hookli`) - Docs: https://hookli.vercel.app/docs/use-text-selection ## Signature ```ts useTextSelection(): string ```