fof / bbcode-tabs
Add tabs to your posts by using BBCode tags
Package info
github.com/FriendsOfFlarum/bbcode-tabs
Language:TypeScript
Type:flarum-extension
pkg:composer/fof/bbcode-tabs
Fund package maintenance!
2.0.0-beta.1
2026-05-20 21:04 UTC
Requires
- flarum/core: ^2.0.0
Requires (Dev)
- flarum/phpstan: ^2.0.0
- fof/pages: ^2.0@beta
This package is auto-updated.
Last update: 2026-05-20 21:09:00 UTC
README
A Flarum extension. Add tabs to your posts by using BBCode tags.
Usage
[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.
Installation
Install with composer:
composer require fof/bbcode-tabs:"*"
Updating
composer update fof/bbcode-tabs
Links
An extension by FriendsOfFlarum.