title: $:/core/ui/PageMacros
\define tabs(tabsList,default,state:"$:/currentTab")
<$list filter="$tabsList$" variable="currentTab"><$button set=<> setTo=<> default="$default$" selectedClass="tw-tab-selected"><$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/> $button>
$list>
<$list filter="$tabsList$" variable="currentTab">
<$reveal type="match" state=<> text=<> default="$default$">
<$transclude tiddler=<>/>
$reveal>
$list>
\end
{{$:/core/ui/PageTemplate}}