@zef-dev/convoworks-intent-model-editor
v1.7.0
Published
Intent and entity editors for the Convoworks framework
Downloads
96
Keywords
Readme
Convoworks Intent Model Editor
Intent and entity editors for the Convoworks framework
Install
npm
npm install --save @zef-dev/convoworks-intent-model-editoryarn
yarn add @zef-dev/convoworks-intent-model-editorUsage
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
