title: $:/core/macros/tabs
tags: $:/tags/Macro
\define tabs(tabsList,default,state:"$:/state/tab",class)
<$list filter="$tabsList$" variable="currentTab">
<$button set=<> setTo=<> default="$default$" selectedClass="tw-tab-selected">
<$transclude tiddler=<> field="caption">
<$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/>
$transclude>
$button>
$list>
<$list filter="$tabsList$" variable="currentTab">
<$reveal type="match" state=<> text=<> default="$default$">
<$transclude tiddler=<> mode="block"/>
$reveal>
$list>
\end