--- title: "Tabs" description: Switch between content panels using tabs icon: "icon-[mdi--tab]" soon: true --- Switch between content panels. Two approaches: server controls tab state, or JavaScript does. ## Server-Driven (HATEOAS) The server controls which tab is selected. This follows [HATEOAS](https://en.wikipedia.org/wiki/HATEOAS) (Hypertext As The Engine Of Application State) - the server returns complete UI state with each response. ```html
``` ```html
Tab content here...
``` ## Client-Side JavaScript handles tab selection. Server returns content only. Uses `aria-selected` attribute to control styling. ```html
``` Server returns just the content: ```html

Your tab content...

```