@zef-dev/convoworks-intent-model-editor

1.7.0 • Public • Published

Convoworks Intent Model Editor

Intent and entity editors for the Convoworks framework

NPM JavaScript Style Guide

Install

npm

npm install --save @zef-dev/convoworks-intent-model-editor

yarn

yarn add @zef-dev/convoworks-intent-model-editor

Usage

React example

import React, { Component } from 'react'
import {
  IntentEditor,
  EntityEditor
} from '@zef-dev/convoworks-intent-model-editor'
import '@zef-dev/convoworks-intent-model-editor/dist/index.css'

class IntentExample extends Component {
  render() {
    return (
      <IntentEditor
        intent={{}} // object
        entities={[]} // array
        systemEntities={[]} // array
        onUpdate={fn} // function
      />
    )
  }
}

class EntityExample extends Component {
  render() {
    return (
      <EntityEditor
        entity={{}} // object
        onUpdate={fn} // function 
      />
    )
  }
}

License

MIT © zef-dev

Readme

Keywords

Package Sidebar

Install

npm i @zef-dev/convoworks-intent-model-editor

Weekly Downloads

0

Version

1.7.0

License

MIT

Unpacked Size

287 kB

Total Files

14

Last publish

Collaborators

  • tolecar
  • nikola.milic96
  • tefached95