SidebarComponent
A column of navigation that folds into a rail of icons.
Java
Inside a PanelComponent constructor. The same call draws in every family and chroma.
Java
SidebarComponent nav = add(new SidebarComponent(at(new Box("nav", 0, 0, 110, 200)), this)
.groups(Group.of("World",
Item.of("Map").icon(Icon.GLOBE),
Item.of("Players").icon(Icon.CHIP).badge("12"),
Item.of("Files").icon(Icon.FOLDER).children(Item.of("Saves"), Item.of("Logs").badge("!", Tone.WARN))),
Group.of("Look", Item.of("Theme").icon(Icon.PALETTE)))
.onSelect(this::open)
.onCollapse(rail -> placeContent(nav.currentWidth())));
// ... the other widgets ...
add(nav.menu()); // last: what a nested item opens from the railVariants
Nav

Rail
