Install this component and add the dependencies to the app where you want to use it.
There are two widgets available, one for Radio Group, and another for Button Group:
Inputs
There are 3 inputs to the widget:
Event
There is an event called "ButtonChanged", this event needs a handler on the parent element, so that the selected button value can be passed to it.