smart-compose-react
Version:
输入字符可以智能提醒,按一下 Tab 键位就可以快速输入智能提醒内容
30 lines (24 loc) • 575 B
Markdown
# SmartCompose
输入字符可以智能提醒,按一下 Tab 键位就可以快速输入智能提醒内容
```jsx
npm i smart-compose-react
```
## 使用
```jsx
import { SmartCompose } from 'smart-compose-react'
<SmartCompose
onChange={(value) => {
getTip(value)
}}
suggestion={suggestion}
sugStyle={yourStyle}
>
<Fragment>
<div contentEditable suppressContentEditableWarning>
content
</div>
<textarea name="textarea1" cols={30} rows={10}></textarea>
<CustomEditor />
</Fragment>
</SmartCompose>
```