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.
Permalink
Failed to load latest commit information.
docs-assets
docs
src Add object support to options via lodash.map 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
CHANGELOG.md
README.md Update README.md Sep 2, 2015
package.json Add object support to options via lodash.map Oct 9, 2015

README.md

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