UNPKG

@react-awesome/use-selection-range

Version:

useSelectionRange tracks the input selection range.

33 lines (23 loc) 1.29 kB
# @react-awesome/use-selection-range <p align="center"> <img alt="version" src="https://img.shields.io/npm/v/%40react-awesome%2Fuse-selection-range" /> <img alt="coverage" src="https://img.shields.io/codecov/c/github/trinhthinh388/react-awesome-components/master?token=VQ8VJ7OECQ&flag=useSelectionRange" /> <img alt="license" src="https://img.shields.io/github/license/trinhthinh388/react-awesome-components" /> <img alt="build status" src="https://img.shields.io/github/actions/workflow/status/trinhthinh388/react-awesome-components/release.yml" /> <img alt="size" src="https://img.shields.io/bundlejs/size/%40react-awesome/use-selection-range" /> </p> **useSelectionRange** tracks the input selection range. Please refer to the [documentation](https://react-awesome-components.vercel.app/docs/use-selection-range) for more information. ## Installation ```sh yarn add @react-awesome/use-selection-range # or npm i @react-awesome/use-selection-range ``` ## Contribution Yes please! See the [contributing guidelines](https://github.com/trinhthinh388/react-awesome-components/blob/master/CONTRIBUTING.md) for details. ## Licence This project is licensed under the terms of the [MIT license](https://github.com/trinhthinh388/react-awesome-components/blob/master/LICENSE).