Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

This module provides a field type called "Horizontal Tabs" which consists of tab label and tab body elements. The number of allowed tabs can be set when adding the field to an entity. Tab labels can be set to display as either traditional tabs or as pill buttons.

This module depends on the Bootstrap framework. It does not prescribe how Bootstrap should be integrated with the site, but presumes that it is integrated and that the tab JavaScript utility is loaded on all pages.

This implementation is compliant with WAI-ARIA guidelines for tab accessibility.

Options/Features

Display settings for the field formatter (i.e., "Manage Display") include:

  • Tab style: "Tabs" (default) or "Pills"
  • Tab orientation: "Horizontal" (default) or "Vertical"

Compatibility

  • Bootstrap 3, 4 or 5

Note: Drupal 11 uses jQuery 4 which is not supported in Bootstrap 3 and 4.

The simplest way to integrate the required Bootstrap components is to use or sub-theme the Bootstrap Drupal theme (whose current stable version uses Bootstrap version 3).

If using with Bootstrap 4, you will need to include the `util.js` and `tab.js`
components. See https://getbootstrap.com/docs/4.0/components/navs/#javascript-behavior.

Installation & configuration

  1. After enabling this module, go an entity's "Manage fields" page and click "Add field."
  2. A new field type, "Horizontal Tabs," will be available.
  3. Follow standard Drupal field steps for adding the field.
  4. Under the "Manage Display" page, choose whether the tab headers should display as standard "Tabs" or "Pill buttons". See examples at https://getbootstrap.com/docs/4.0/components/navs/#javascript-behavior
  5. Go to /admin/config/content/bootstrap-horizontal-tabs and select your version of Bootstrap being used. Note: This feature was added starting in version 2.0.7.

Starting in the 3.0.1 release, the default version of Bootstrap expected is 5.

Activity

Total releases
2
First release
May 2025
Latest release
6 months ago
Release cadence
148 days
Stability
100% stable

Releases

Version Type Release date
3.1.0 Stable Oct 7, 2025
3.0.2 Stable May 12, 2025