# eGUI counter with label and button

* button
* clicked
* label


{% embed include file="src/examples/egui/egui-label-and-button/src/main.rs" %}

* Every time we click on the button, the code in the block gets executed incrementing the counter
* Then the displayed label is refreshed.

![](examples/egui/egui-label-and-button/screenshot.png)


