This component has been constructed using a combination of a button, caret icon and a popover menu.
The button will trigger an event which is to be handled by the parent of the webblock. The event can be used to pass the value of the selected option which can be interpreted on the page to do any logic you wish.
The caret icon when clicked will present the options defined in the DropdownButtonOptions using the Popover menu OutSystems component.