react-bpmn

0.2.0 • Public • Published

react-bpmn

Use bpmn-js to display BPMN 2.0 diagrams in a React application.

Usage

import ReactBpmn from 'react-bpmn';
 
 
function App(props) {
 
  function onShown() {
    console.log('diagram shown');
  }
 
  function onLoading() {
    console.log('diagram loading');
  }
 
  function onError(err) {
    console.log('failed to show diagram');
  }
 
  return (
    <ReactBpmn
      url="/public/diagram.bpmn"
      onShown={ onShown }
      onLoading={ onLoading }
      onError={ onError }
    />
  );
}

Resources

License

MIT

Package Sidebar

Install

npm i react-bpmn

Weekly Downloads

1,146

Version

0.2.0

License

MIT

Unpacked Size

24.1 kB

Total Files

8

Last publish

Collaborators

  • vsgoulart
  • skaiir-camunda
  • marstamm
  • bpmn-io-admin
  • nikku
  • barmac
  • philippfromme
  • maxtru