SPFX component type for container of other web parts or alternate section format
I'd like to be able to have one web part that shows or hides another web part, or a web part that can contain other web parts. The system has section layouts, now, but I'd like to take that a step further.
This comes up because I've been looking for a solution to have a SharePoint modern page that can switch between two different views to a document library - a custom web part, and the standard web part. When I was trying to find a modern solution, I did see that older versions of sharepoint have had a fairly well known "hilbilly tabs" solution that seems to do something like this.
Ideally, I'd have a "layout" option isntead of one column, two columns, etc., which could have tabs or some kind of switch to completely disable one of the web parts and render the other one.
Hopefully it's already possible, but I just haven't found a way how yet.