ButtonComponent
Displays a button.
Java
Inside a PanelComponent constructor. The same call draws in every family and chroma.
Java
add(new ButtonComponent(at(new Box("save", 12, 28, 130, 18)), "Save", this::save)
.role(ButtonComponent.Role.HERO));
add(new ButtonComponent(at(new Box("reset", 150, 28, 130, 18)), "Reset", this::reset)
.role(ButtonComponent.Role.DESTRUCTIVE)
.tooltip("Reset", "Puts every setting back to its default"));Variants
Motion:
Roles

Tooltip
Hover to see the tooltip.
