Select dropdown over text React component.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src Add object support to options via Oct 9, 2015
.eslintrc Update readme, and clean the code Jul 9, 2015
.gitignore Update: Created a compiled version, props are now passed, and the com… May 3, 2015
.npmignore Add: npmignore May 3, 2015 Update Sep 2, 2015
package.json Add object support to options via Oct 9, 2015

React Text Select

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

Live demo

react-textselect screenshot


npm install react-textselect --save


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

  options={['text select', 'react component', 'dropdown']}
  onChange={this.onTextSelectChange} />

Add styles.

Dont forget to add styles.

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


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