-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.json
6 lines (6 loc) · 1.61 KB
/
params.json
1
2
3
4
5
6
{
"name": "React-taggable-input",
"tagline": "tag or mention in input element when keydown # or @ or any other character.",
"body": "# react-taggable-input\r\n\r\ntag or mention in input element when keydown # or @ or any other character.\r\n\r\n[![react-taggable-input](http://bingo.d.pr/LG6X.gif)](http://bingo.d.pr/LG6X.gif)\r\n\r\n\r\n# Install \r\n\r\n```\r\nnpm i react-taggable-input\r\n```\r\n\r\n# Usage\r\n```js\r\n <TaggableInput\r\n ref={ (input) => (this.input = input) }\r\n disabled={ this.props.disabled }\r\n defaultValue={ defaultValue }\r\n className=\"submit-input\"\r\n placeHolder=\"輸入 #\"\r\n trigger=\"##\"\r\n maxLength={ 100 }\r\n onKeyDown={ this.handleKeyDown }\r\n onTrigger={ this.handleTrigger }\r\n onTriggerKeyUp={ this.handleTriggerKeyUp }\r\n onChange={ this.handleChange }\r\n onSubmit={ this.handleSubmit }\r\n />\r\n```\r\n\r\n# props\r\n\r\n```\r\ntrigger: PropTypes.string.isRequired,\r\ndisabled: PropTypes.bool,\r\nclassName: PropTypes.string,\r\ndefaultValue: PropTypes.string,\r\nplaceHolder: PropTypes.string,\r\nmaxLength: PropTypes.number,\r\nonKeyDown: PropTypes.func,\r\nonTrigger: PropTypes.func,\r\nonTriggerKeyUp: PropTypes.func,\r\nonChange: PropTypes.func,\r\nonSubmit: PropTypes.func,\r\n```\r\n\r\n# More Detail\r\n\r\nplease checkout [Demo.js](https://github.com/cnyes/react-taggable-input/blob/master/src/components/Demo.js) if you want to see more detail.\r\n",
"note": "Don't delete this file! It's used internally to help with page regeneration."
}