react-completor
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

react-completor

Input completion component for react

NPM code style: prettier

Install

npm install --save react-completor

Usage

import * as React from 'react'

import Completor from 'react-completor'

class Example extends React.Component {
  const sentences = [
    'what is the time now'
    ....
  ]
  const chunks = [
    {
      type: 'word',
      value: 'time'
    },
    {
    type: 'time',
    value: 'now'
    }
  ]
  render () {
    return (
      <Completor placeholder="Message..." data={{sentences, chunks}}/>
    )
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i react-completor

Weekly Downloads

2

Version

2.3.0

License

none

Unpacked Size

161 kB

Total Files

11

Last publish

Collaborators

  • meain