Useful components and hooks for react-konva
Html components allows you to create DOM components inside Konva stage. All DOM components will be placed over canvas content.
``js
import { Html } from 'react-konva-utils';
$3
Konva is a canvas library. It can't render DOM elements directly.
component will just create a div element and put it top top of the canvas with absolute positioning. That means HTML will be not visible if you export canvas as image.The most common use case is to create HTML content for temporary tooltips or textareas.
Portal
Portal allows you to create portal from one Konva container (such as Layer or Group) into another.`js
import { Portal } from 'react-konva-utils';
{/ content of that portal will be moved into "top" group/}
;
``