Airframe GitHub Storybook
Component

ba-tab-chip

A tab component (styled as a chip) which allows the user to select a single option from a selection of categories.

Airframe

Active
Figma

Web Components

Active
Storybook GitHub

React

Active
Storybook GitHub

React Native

Planned
Design Code Accessibility QA
A

Tab chip group

The container that groups a set of tab chips representing related categories, only one of which can be selected at a time

B

Selected tab chip

The currently active chip, shown with a filled background and an optional icon to reinforce its meaning

The chip labels should be kept to a minimum of 1-2 words. This helps quickly get the intent across and stops them from taking up too much room

Chips should be concise and scannable at a glance. Long chip labels can wrap, making them harder to read and reducing overall usability.

  • Keep labels short: Aim for fewer than 25 characters to ensure chips remain clear and compact.
  • Use clear wording: Choose simple, recognizable terms that don’t require extra explanation.
  • Avoid wrapping text: Wrapping increases visual clutter and can make chips appear inconsistent in size.
<ba-grid row-gutter-320vw="16">
  <ba-tab-chip-group>
    <ba-tab-chip name="tab1">Tab 1</ba-tab-chip>
    <ba-tab-chip name="tab2">Tab 2</ba-tab-chip>
    <ba-tab-chip name="tab3">Tab 3</ba-tab-chip>
  </ba-tab-chip-group>

  <ba-tab-chip-content name="tab1">
    <ba-content>
      <h4>Tab 1</h4>
      <p>
        Sint Lorem ipsum veniam occaecat magna deserunt amet amet veniam minim
        culpa. Dolore adipisicing commodo amet eu do Lorem veniam. Aliqua sit
        fugiat deserunt excepteur consequat veniam cupidatat incididunt tempor.
        Ut minim adipisicing laborum et. Amet anim cillum eiusmod nulla et
        irure. Consequat incididunt commodo adipisicing velit ipsum et. Sint
        sunt ad ex non incididunt ad et amet cupidatat eu irure dolor aliquip
        pariatur.
      </p>
    </ba-content>
  </ba-tab-chip-content>

  <ba-tab-chip-content name="tab2">
    <ba-content>
      <h4>Tab 2</h4>
      <p>
        Sint Lorem ipsum veniam occaecat magna deserunt amet amet veniam minim
        culpa. Dolore adipisicing commodo amet eu do Lorem veniam. Aliqua sit
        fugiat deserunt excepteur consequat veniam cupidatat incididunt tempor.
        Ut minim adipisicing laborum et. Amet anim cillum eiusmod nulla et
        irure. Consequat incididunt commodo adipisicing velit ipsum et. Sint
        sunt ad ex non incididunt ad et amet cupidatat eu irure dolor aliquip
        pariatur.
      </p>
    </ba-content>
  </ba-tab-chip-content>

  <ba-tab-chip-content name="tab3">
    <ba-content>
      <h4>Tab 3</h4>
      <p>
        Sint Lorem ipsum veniam occaecat magna deserunt amet amet veniam minim
        culpa. Dolore adipisicing commodo amet eu do Lorem veniam. Aliqua sit
        fugiat deserunt excepteur consequat veniam cupidatat incididunt tempor.
        Ut minim adipisicing laborum et. Amet anim cillum eiusmod nulla et
        irure. Consequat incididunt commodo adipisicing velit ipsum et. Sint
        sunt ad ex non incididunt ad et amet cupidatat eu irure dolor aliquip
        pariatur.
      </p>
    </ba-content>
  </ba-tab-chip-content></ba-grid
>
Property Attribute Description Type Default
icon icon The name of an icon to show string | undefined undefined
name(required) name The name of the tab string undefined
  • None
Slot Description Permitted elements
Unnamed slot The main text of the chip <Plain text>, <ba‑icon>, <span>

ba-tab-chip can be slotted into:

Property Attribute Description Type Default
activeTabName active-tab-name The name of the active tab. string | undefined undefined
group group The group name of the tabs string | undefined undefined
Slot Description Permitted elements
Unnamed slot Elements will render in the body of the component <ba‑tab‑chip>

ba-tab-chip-group can be slotted into:

Property Attribute Description Type Default
icon icon The name of an icon to show string | undefined undefined
name(required) name The name of the tab string undefined
Slot Description Permitted elements
Unnamed slot The main text of the chip <Plain text>, <ba‑icon>, <span>

ba-tab-chip can be slotted into:

Property Attribute Description Type Default
group group The group name of the tabs string | undefined undefined
name(required) name The name of the tab string undefined
Slot Description Permitted elements
Unnamed slot The content for the tab <ba‑carousel>, <ba‑content>, <ba‑flex>, <ba‑form>, <ba‑grid>, <ba‑page‑segment>

ba-tab-chip-content can be slotted into:

An example showing related content using the tab-chips

Basic usage
<ba-grid row-gutter-320vw="16">
  <ba-tab-chip-group>
    <ba-tab-chip name="tab1" icon="plane-3">Flights only</ba-tab-chip>
    <ba-tab-chip name="tab2" icon="ba-company">Flights + Hotels</ba-tab-chip>
    <ba-tab-chip name="tab3">Flights + Cars</ba-tab-chip>
  </ba-tab-chip-group>

  <ba-tab-chip-content name="tab1">
  </ba-tab-chip-content>

  <ba-tab-chip-content name="tab2">
  </ba-tab-chip-content>

  <ba-tab-chip-content name="tab3">
  </ba-tab-chip-content>
</ba-grid>

You can use multiple groups of tabs and content on a page by assigning the same group attribute to the corresponding <ba-tab-chip-group> and <ba-tab-chip-content> elements. This links them together.

An example of using multiple tab groups on the same page
<ba-grid>
  <ba-grid row-gutter-320vw="16">
    <ba-tab-chip-group group="group1">
      <ba-tab-chip name="tab1">Flights only</ba-tab-chip>
      <ba-tab-chip name="tab2">Flights + Hotels</ba-tab-chip>
      <ba-tab-chip name="tab3">Flights + Cars</ba-tab-chip>
    </ba-tab-chip-group>

    <ba-tab-chip-content name="tab1" group="group1">
    </ba-tab-chip-content>

    <ba-tab-chip-content name="tab2" group="group1">
    </ba-tab-chip-content>

    <ba-tab-chip-content name="tab3" group="group1">
    </ba-tab-chip-content>
  </ba-grid>

  <ba-grid row-gutter-320vw="16">
    <ba-tab-chip-group group="group2">
      <ba-tab-chip name="tab1">Content</ba-tab-chip>
      <ba-tab-chip name="tab2">Profile</ba-tab-chip>
      <ba-tab-chip name="tab3">Membership</ba-tab-chip>
    </ba-tab-chip-group>

    <ba-tab-chip-content name="tab1" group="group2">
    </ba-tab-chip-content>

    <ba-tab-chip-content name="tab2" group="group2">
    </ba-tab-chip-content>

    <ba-tab-chip-content name="tab3" group="group2">
    </ba-tab-chip-content>
  </ba-grid>
</ba-grid>
Prop Description Type Default
activeTabName The name of the active tab. string | undefined undefined
group The group name of the tabs string | undefined undefined
children Elements will render in the body of the component <ba‑tab‑chip>

None

BaTabChipGroup can be slotted into:

Prop Description Type Default
icon The name of an icon to show string | undefined undefined
name (required) The name of the tab string undefined
children The main text of the chip <Plain text>, <ba‑icon>, <span>

None

BaTabChip can be slotted into:

Prop Description Type Default
group The group name of the tabs string | undefined undefined
name (required) The name of the tab string undefined
children The content for the tab <ba‑carousel>, <ba‑content>, <ba‑flex>, <ba‑form>, <ba‑grid>, <ba‑page‑segment>

BaTabChipContent can be slotted into:

An example showing related content using the TabChips

Basic usage
<BaGrid rowGutter320vw="16">
  <BaTabChipGroup>
    <BaTabChip name="tab1" icon="plane-3">Flights only</BaTabChip>
    <BaTabChip name="tab2" icon="ba-company">Flights + Hotels</BaTabChip>
    <BaTabChip name="tab3">Flights + Cars</BaTabChip>
  </BaTabChipGroup>

  <BaTabChipContent name="tab1">
    {/* Content */}
  </BaTabChipContent>

  <BaTabChipContent name="tab2">
    {/* Content */}
  </BaTabChipContent>

  <BaTabChipContent name="tab3">
    {/* Content */}
  </BaTabChipContent>
</BaGrid>

You can use multiple groups of tabs and content on a page by assigning the same group prop to the corresponding <BaTabChipGroup> and <BaTabChipContent> elements. This links them together.

An example of using multiple tab groups on the same page
<BaGrid>
  <BaGrid rowGutter320vw="16">
    <BaTabChipGroup group="group1">
      <BaTabChip name="tab1">Flights only</BaTabChip>
      <BaTabChip name="tab2">Flights + Hotels</BaTabChip>
      <BaTabChip name="tab3">Flights + Cars</BaTabChip>
    </BaTabChipGroup>

    <BaTabChipContent name="tab1" group="group1">
      <!-- Content -->
    </BaTabChipContent>

    <BaTabChipContent name="tab2" group="group1">
      <!-- Content -->
    </BaTabChipContent>

    <BaTabChipContent name="tab3" group="group1">
      <!-- Content -->
    </BaTabChipContent>
  </BaGrid>

  <BaGrid rowGutter320vw="16">
    <BaTabChipGroup group="group2">
      <BaTabChip name="tab1">Content</BaTabChip>
      <BaTabChip name="tab2">Profile</BaTabChip>
      <BaTabChip name="tab3">Membership</BaTabChip>
    </BaTabChipGroup>

    <BaTabChipContent name="tab1" group="group2">
      <!-- Content -->
    </BaTabChipContent>

    <BaTabChipContent name="tab2" group="group2">
      <!-- Content -->
    </BaTabChipContent>

    <BaTabChipContent name="tab3" group="group2">
      <!-- Content -->
    </BaTabChipContent>

  </BaGrid>
</BaGrid>

React Native documentation coming soon.

Use tabs to organize related content without overwhelming users, but be mindful that tabbed content is hidden by default until selected.

  • Prioritize key information: Place critical or frequently used content outside of tabs so it’s always visible.
  • Limit the number of tabs: Fewer tabs make it easier for users to discover and navigate content. Aim for clarity over quantity.

State: Previous element in DOM has focus

⇥ Tab

Moves focus onto the first <ba-tab-chip> element

State: <ba-tab-chip> has focus

← Arrow Left

Moves focus to the next <ba-tab-chip> element

→ Arrow Right

Moves focus to the previous <ba-tab-chip> element

⇥ Tab

Moves focus onto the relevant <ba-tab-chip-content> element

Use this checklist to confirm the component has been configured and used correctly.

  • Chip labels are kept to 1-2 words to quickly convey intent without taking up too much room
  • Chip labels are kept under 25 characters, use clear, recognisable wording, and avoid wrapping
  • Key or frequently used content is not placed solely inside tab content; it remains visible without needing to select a tab
  • A small number of tabs are used so users can easily discover and navigate between them
  • ba-tab-chip is operable with keyboard using tab to focus the group and arrow keys to move between chips
  • Focus indicator has not been obscured on all sides of the component

These checks are handled by the component and do not need to be repeated each time it is used.

  • ba-tab-chip is operable using assistive technology
  • Has a visible focus indicator on all sides of the component
  • Colour contrast for all states in all BAgel themes
  • Animations respect users' reduced motion settings
  • High contrast mode adjustments
Designing Developing Components BAgel helper Web QA React Native QA britishairways.com Careers Cookie policy