Tab

A component for switching between different content panels, providing a clean and organized way to display multiple sections of content without overwhelming the user interface.

Basic Tabs

Create a standard tab interface with content panels.

This is the home content.
This is the profile content.
This is the settings content.
php
Tab Options
The Tab component provides various customization options.
  • Different tab types (Tabs, Pills, Card Header, Arrow)
  • Vertical tab layout
  • Justified tabs with equal width
  • Custom color styling
  • Accessible keyboard navigation
Tab Examples
Here are examples of different tab options and styles.

Pills Tabs

Create tabs with a pill-style appearance.

This is the home content.
This is the profile content.
This is the settings content.
php

Vertical Tabs

Create tabs arranged vertically.

This is the home content.
This is the profile content.
This is the settings content.
php

Justified Tabs

Create tabs that take up equal width.

php

Colored Tabs

Create tabs with custom color styling.

php

Card Header Tabs

Create tabs styled for use in card headers.

This is the home content.
This is the profile content.
This is the settings content.
php

Arrow Navigation Tabs

Create tabs with arrow-style navigation.

This is the home content.
This is the profile content.
This is the settings content.
php

API

The Tab component provides methods for creating and configuring tabs.
API PHP

Events

You can listen to events on the GridJS component using the boui on() method.

Common alternative names: Tab Panel, Tab Interface, Tab Navigation, Tabbed Interface, Tabbed Panel, Tabbed Navigation, Tab Container

Types: Default Tabs, Pill Tabs, Card Header Tabs, Arrow Tabs, Vertical Tabs, Justified Tabs, Colored Tabs


Principles

Visual Organization

Tabs organize content into clear, distinct sections while maintaining a clean and uncluttered interface.

Content Switching

Through clear visual indicators and consistent styling, tabs provide an intuitive way to switch between different content sections.

Context Preservation

Tabs maintain context while switching between different content panels, helping users understand their location in the interface.


Anatomy

Tab Anatomy
  1. Container
  2. The outer wrapper that holds all tab content

  3. Tab Element
  4. The clickable tab headers

  5. Active Tab Element
  6. The active tab element


Usage

Use tabs to organize related content into distinct sections. They're particularly effective for:

  • Content organization
  • Feature grouping
  • Settings panels
  • Form sections
  • Documentation
  • Multi-step processes