fof/bbcode-tabs

Add tabs to your posts by using BBCode tags

Package info

github.com/FriendsOfFlarum/bbcode-tabs

Homepage

Forum

Language:TypeScript

Type:flarum-extension

pkg:composer/fof/bbcode-tabs

Fund package maintenance!

Website

Statistics

Installs: 10 564

Dependents: 1

Suggesters: 0

Stars: 2

Open Issues: 1

2.0.0-beta.1 2026-05-20 21:04 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 9093f9bd3d18723d9e157a710e77d363e31e948d

  • David Sevilla Martin <me+fof.woop@dsevilla.dev>

flarum


README

👁 License
👁 Latest Stable Version
👁 OpenCollective
👁 Donate

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 attributes
    • name (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

👁 OpenCollective

An extension by FriendsOfFlarum.