Lazy Tabs
Demo
Explanation
This example shows how easy it is to implement tabs using Datastar. Following the principle of Hypertext As The Engine Of Application State, the selected tab is a part of the application state. Therefore, to display and select tabs in your application, simply include the tab markup in the returned HTML fragment.