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