seg-tabs
List screen Generic list screen with title, toolbar, rows that work desktop and mobile.
A segmented control of links or buttons. The current link is aria-current; the pressed button is aria-pressed="true".
Each example is live, but its links go nowhere. HTML shows the markup to copy.
Two sections
<nav rst-seg-tabs aria-label ="Post sections" >
<a href ="?tab=basics" aria-current ="page" >Basics</a >
<a href ="?tab=advanced" >Advanced</a >
</nav >
In an app this would reach ?tab=advanced, ?tab=basics. Here its links and forms go nowhere.
Buttons that switch in place
Buttons, for a choice that changes the page in place, like a view. Your script moves aria-pressed to the button pressed.
<div rst-seg-tabs role ="group" aria-label ="View" >
<button type ="button" aria-pressed ="true" >List</button >
<button type ="button" aria-pressed ="false" >Grid</button >
</div >