How can i make my button a component

Hi. It was a tutorial on the site on how to build a button and then make it a component. I can’t find it again and i need it.
10x in advance.