JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 68
  • Score
    100M100P100Q66644F
  • License ISC

Select dropdown over text in React.

Package Exports

  • react-textselect

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-textselect) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React Text Select

Simple component to put an invisible Select dropdown over a text.

Live demo

react-textselect screenshot

Installation

npm install react-textselect --save

Usage.

var TextSelect = require('react-textselect');

<TextSelect
    options={['text select', 'react component', 'dropdown']}
    active={this.state.selectedOption}
    onChange={this.onTextSelectChange}/>

Add styles.

Dont forget to add styles.

<link rel="stylesheet" href="/node_modules/react-textselect/dist/textselect.css">

Build

If you want to build this from source, you will need babel and less.

npm install -g babel less

And run the pre publish script

npm run prepublish