Getting width of panel component

Hi, I would like to get the width of a panel component as I’d like to use this elsewhere. What is the easiest way to do this?

Perhaps this if the width is fixed:
component.width

The width is not fixed, it is dynamic.

You’d probably have to incorporate some Javascript code thru jscallback.

I’m running into some errors if I try to run jscallback, can someone please tell me how this can be achieved? Thanks.

Can you share what you’ve tried?