Create custom structure field preview

Hej hej,

I’m working on a small plugin to extend to panel preview option of the structure field.

I’m trying to emulate the behaviour of the Pages Section described here, where one could simply change the text preview of a column by creating a custom method for the page.

Unfortunately, the structure field seems to be deprived of this level of customisability and is limited to the basic width, align, before, after and mobile options.

My first question would be, does anyone know of an existing plugin with these capabilities?

If not, could someone help me wrap my head around how to implement custom structure models / props (not sure about the nomenclature) in a plugin?

Thank you in advance,
NG <3