title: $:/core/ui/PageMacros
\define tabs(tabsList,default,state:"$:/state/tab")
<$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
\define wikitext-example(src)
```
$src$
```
Renders as:
$src$
In HTML:
$$$text/vnd.tiddlywiki>text/html
$src$
$$$
\end
{{$:/core/ui/PageTemplate}}