Get widget size in shader editor?

The fact is that I will have a huge number of widgets(1000+) and there will not be 3D graphics.
I wanted to minimize the number of components in the widget that would unload the CPU.