The selected attribute can be set for tef-tabs in order to preselect a tab or select it in real time.
You can create callbacks for the "selected" event in each tab.
Go ahead click in any tab!
You can also create a callback for the "change" event in the tef-tabs component.
Anytime a tab is selected, the selected attribute in tef-tabs is updated in real time. You can check this inspecting the DOM.
Go ahead, click in any tab!