It is recommended to update existing solutions to the new Tabs API, including toggle button combinations (as pictured above) as previously used in IMGUI framework.
A Tab has a header that can respond to pointer and mouse events. The header can hold an icon, a label, or both. The Tab content container can hold anything inside of it giving more flexibility to customize its layout.
A tab view provides additional functionality to the Tab. It allows a group of tabs to interact between each other by hiding the inactive tabs and displaying the active one. Additionally, it adds the ability to re-order the group of tabs.
reorderable property can be used to add dragging support to tabs in the tab view. The default value is false. Set this value to true to allow the user to reorder tabs.
For reorderable tabs, it is important to keep the view-data-key unique for the TabView and Tab elements inside of it. The view-data-key helps store the state of the tabs such as the order and state. By having an empty view-data-key, which is the default value, the state of the tabs will not persist when reloading the document.