Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-click-to-select

mapbox5ISCdeprecated1.1.1

This module is now under the @mapbox namespace: install @mapbox/react-click-to-select instead

a higher-order component that selects elements contained within it on click

react, react-component, component, select, text

readme

react-click-to-select

A React component that selects the text / elements contained within when they're clicked.

install

npm install --save react-click-to-select

use

<ClickToSelect>this text will be selected when clicked</ClickToSelect>

changelog

Changelog

1.1.1

  • Allow React 15 as peer dependency.
  • Start this log.