Modulable menu for text selection in React.
npm install --save react-selected-text-menu
Search words or expressions that you selected directly on your favorite website.
import SelectedText from 'react-selected-text-menu';
// In the render :
<SelectedText items={['google', 'wikipedia', 'clippy']}>
Lorem ipsum dolor sit amet
</SelectedText>
You can choose modules with the items
prop.
Example :
items=['google', 'wikipedia', 'clippy', 'github', 'amazon', 'yahoo, 'pinterest', 'youtube', 'lastfm', 'maps', 'yelp', 'tripadvisor', 'soundcloud', 'reddit']
git clone https://github.com/noemaireamiot/react-selected-text-menu.git
cd react-selected-text-menu
npm install
npm start
- Wikipedia
- Copy to clipboard
- GitHub
- Yahoo
- Amazon
- Maps
- Yelp
- Youtube
- Lastfm
- Tripadvisor
- Soundcloud
- Bing
- Many others...