ExamplesNodes

Node Resizer

The <NodeResizer /> component can be used to add a resize UI for a custom node. The @xyflow/svelte package also exports a <NodeResizeControl /> component for implementing a custom resizing UI as shown in this example.

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

<h1>Hello {data}</h1>

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