react-tags-field
Provide TagsField component, allow user input list of words
Screenshot
Install
npm install --save react-tags-field
Usage
import React Component from 'react';import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';import TagsField from 'react-tags-field'; { ; thisstate = tags: '' ; thishandleOnChange = thishandleOnChange; } { this; } { return <MuiThemeProvider> <div => <div => <TagsField ="orange" ="Give us some words" ="Please input some words" = /> <h5>Tags: thisstatetags</h5> </div> </div> </MuiThemeProvider> ; }
Run demo
npm run build
cd example
npm start
License
MIT © nclong87