React component
Availability
[SINCE Orbeon Forms 2022.1.6, 2023.1.1]
This is an Orbeon Forms PE feature.
The React component is available from the npm package registry.
Usage
The Orbeon Forms React component can be used in any React application. To use it, add @orbeon/react
to your dependencies, typically in your package.json
file, like this:
Usually, this is done via the command line:
The Orbeon Forms React component is based on the JavaScript embedding API, but you don't need to include it explicitly using a <script>
tag. The React component will include it automatically.
The component is used as follows:
The properties have the same meaning as in the JavaScript embedding API:
Example
Here's a simple example in TypeScript where a form is selected from a dropdown and then embedded using the Orbeon Forms React component:
Last updated