Examples
Edges
Edge Label Renderer

Edge Label Renderer

If you need more control of your edge labels, you can use the EdgeLabelRenderer component. It's a portal component that lets you render edge labels as divs on top of the edges. If you want to add mouse interactions you need to set pointer-events: all on the label.

<script lang="ts">
const data: string = "world";
</script>

<h1>Hello {data}</h1>

<style>
h1 {
  font-size: 1.5rem;
}
</style>
Read-only