I'm trying to create a reusable style (let's call it titlerect
) for a tikz node which is supposed to look something like the following figure I quickly whipped up in Inkscape:
I imagine it should be usable like
\node[titlerect, title={The title}] at (0,0) {The content};
Quite honestly, however, I don't even know where to start so there's currently no MWE I can provide. I would be grateful for any pointers on how I might go about creating such a style.