How to create horizontal rule from a button

It’s a simple question, I know how to assign a block or a mark (like “bolt”, or H1) to a button, also how to manage the commands, but ¿How I can to assign the horizontal rule to a button?

Something like this

sorry for such a simple question Thank you,