Does anyone know how to use the button peripheral in ESP-IDF?

As I’m guessing anyone who has experience with ESP-IDF has encountered, the documentation and examples for certain functionality can be somewhat… lacking. I’m currently trying to use the button peripheral to set up a very simply GPIO button, but I cannot figure how the thing is supposed to work, and of course the linked “example” is to an unrelated feature and doesn’t actually implement thing thing I want to use.

Has anyone used this thing, and can you provide me with a simple example?

https://espressif-docs.readthedocs-hosted.com/projects/esp-adf/en/latest/api-reference/peripherals/periph_button.html