Take a look at the ActionButtonTemplate.xml file from the default UI code.
You have 3 options:
1) inherit from that template directly
2) inherit that template into your own template which makes any purpose specific changes you need to the template
3) copy the template code and chop it up to suit your purposes.