How can I add buttons to the TopBar?

There are multiple UI libraries for this, most notably though: