用于输入标签的高度可定制的 React 组件。
[![NPM 版本][npm-image]][npm-url] [![大小][size-image]][size-url] [![代码覆盖率][codecov-image]][codecov-url] [![下载次数][downloads-image]][downloads-url] [![js-standard-style][standard-image]][standard-url] 可高度自定义的 React 组件,用于输入标签。
import React from 'react'
import TagsInput from 'react-tagsinput'
import 'react-tagsinput/react-tagsinput.css'
class Example extends React.Component {
constructor() {
super()
this.state = {tags: []}
}
handleChange = (tags) => {
this.setState({tags})
}
render() {
return <TagsInput value={this.state.tags} onChange={this.handleChange} />
}
}暂无开放 Issues,或尚未同步最近议题。