#include <memory>
#include <utility>
#include <vector>
Component Inner(std::vector<Component> children) {
Component vlist = Container::Vertical(std::move(children));
return Renderer(vlist, [vlist] {
return hbox({
text(" "),
vlist->Render(),
});
});
}
return std::make_shared<ComponentBase>();
}
int main() {
auto component =
Inner({
Inner({
})),
Inner({
})),
Inner({
})),
}));
ScreenInteractive::FitComponent().Loop(component);
}
std::shared_ptr< ComponentBase > Component
Component Collapsible(ConstStringRef label, Component child, Ref< bool > show=false)