React component
The Chat runner React component makes it easy to implement the runner in a React application.
tip
Read the React implementation guide for more information and examples.
Signature
ChatRunner(props: IChatProps): JSX.Element
Parameters
Name | Type | Optional | Description |
---|---|---|---|
props | IChatProps | No | Specifies the component properties. |
Return value
Returns the runner JSX.Element
.
Example
import { ChatRunner } from "@tripetto/runner-chat";
function MyApp() {
return (
<div>
<h1>Welcome to my app</h1>
<ChatRunner definition={/* Supply your form definition here */} />,
</div>
);
}