title: $:/core/macros/tabs
tags: $:/tags/Macro
\define tabs(tabsList,default,state:"$:/state/tab",class,template)
<$list filter="$tabsList$ +[nsort[order]]" variable="currentTab">
<$tiddler tiddler=<> >
<$button set=<> setTo=<> default="$default$" selectedClass="tc-tab-selected" tooltip={{!!tooltip}}>
<$set name="tv-wikilinks" value="no">
<$transclude tiddler=<> field="caption">
<$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/>
$transclude>
$set>
$button>
$tiddler>
$list>
<$list filter="$tabsList$" variable="currentTab">
<$reveal type="match" state=<> text=<> default="$default$">
<$transclude tiddler="$template$" mode="block">
<$transclude tiddler=<> mode="block"/>
$transclude>
$reveal>
$list>
\end