Make the widget more general and update documentation
Update to match the generalization in the button panel implementation