Display BPMN 2.0 diagrams in your Slidev presentations. Whether you're presenting workflow designs, explaining process automation, or teaching BPMN concepts β this addon has you covered! π‘
Powered by bpmn-js from bpmn.io.
- Install the addon in your Slidev project
- Place your
.bpmnfiles in thepublic/folder - Use the
<Bpmn>component in your slides
That's it β your BPMN diagrams are ready to present!
npm install slidev-addon-bpmnThen register the addon in your slide's frontmatter:
---
addons:
- slidev-addon-bpmn
---Or in your package.json:
{
"slidev": {
"addons": ["slidev-addon-bpmn"]
}
}This addon provides two complementary components for different use cases:
<Bpmn>- Static BPMN rendering for PDFs, presentations, and documentation<BpmnTokenSimulation>- Interactive token-based process simulation for live demos
Renders BPMN diagrams as static SVG images. Perfect for PDF exports and presentations.
<Bpmn
bpmnFilePath="./my-process.bpmn"
width="100%"
height="400px"
/>Props:
| Name | Type | Default | Description |
|---|---|---|---|
bpmnFilePath |
string |
required | Path to the .bpmn file (relative to public/) |
width |
string |
'100%' |
Maximum width of the diagram |
height |
string |
'auto' |
Height of the diagram |
Renders interactive BPMN diagrams with token simulation capabilities. Perfect for process walkthroughs and training.
<BpmnTokenSimulation
bpmnFilePath="./my-process.bpmn"
width="100%"
height="500px"
/>Props:
| Name | Type | Default | Description |
|---|---|---|---|
bpmnFilePath |
string |
required | Path to the .bpmn file (relative to public/) |
width |
string |
'100%' |
Width of the diagram container |
height |
string |
'auto' |
Height of the diagram container (defaults to 500px when 'auto') |
The token simulation provides interactive controls for stepping through process execution with animated token flow.
- File location: BPMN files must be placed in the
public/folder - Supported formats: Standard BPMN 2.0 XML files (exported from Camunda Modeler, bpmn.io, etc.)
- Styling: Use Tailwind classes on the component element to control sizing
- Export: Each
<Bpmn>component works seamlessly with Slidev's PDF/PNG export features
Looking for DMN? If you're modeling decision tables alongside your processes, check out slidev-addon-dmn β the sister addon for rendering DMN diagrams in Slidev!
Contributions are welcome! Feel free to report bugs, suggest features via issues, submit pull requests with improvements, or share your ideas and use cases.
To develop locally: clone the repo, run npm install, then npm run dev to test your changes.
- bpmn-js by bpmn.io
- Inspired by slidev-addon-excalidraw
- bavaria-ipsum - for making the example slide a little more entertaining π₯¨
