Skip to main content

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​

NameTypeOptionalDescription
propsIChatPropsNoSpecifies 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>
);
}

Run Try on CodeSandbox