Skip to main content

React component

The Autoscroll 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

AutoscrollRunner(props: IAutoscrollProps): JSX.Element

Parameters

NameTypeOptionalDescription
propsIAutoscrollPropsNoSpecifies the component properties.

Return value

Returns the runner JSX.Element.

Example

import { AutoscrollRunner } from "@tripetto/runner-autoscroll";

function MyApp() {
return (
<div>
<h1>Welcome to my app</h1>
<AutoscrollRunner definition={/* Supply your form definition here */} />,
</div>
);
}

Run Try on CodeSandbox