A Flarum extension. Add tabs to your posts by using BBCode tags.
[tabs]
[tab="hi"]Hi[/tab]
[tab="hello"]Hello[/tab]
[tab="lorem" fullheight=]ipsum ....[/tab]
[tab="custom height" height="50"]custom height tab[/tab]
[/tabs]
To make a tag active by default:
[tab="[NAME]" active="[ANYTHING]"]...[/tab]
[tab name="[NAME]" active="[ANYTHING]"]...[/tab]
BBCode Tags
[tabs]wrapper tag with optional attributes:height(optional): numeric height in pixels for tab content (height="240"-> 240px).fullheight(optional): use automatic content height.
[tab]child tag with required and optional attributesname(required): tab label text.active(optional): marks that tab as initially selected.height(optional): per-tab pixel height override.fullheight(optional): per-tab automatic height override.
The attributes that do not require a value (active, fullheight) need to have a value, even if it is empty. Thus, just active is not valid but active= and active="..." are valid.
Install with composer:
composer require fof/bbcode-tabs:"*"composer update fof/bbcode-tabsAn extension by FriendsOfFlarum.