Tabs

Tabs organise related sections of content on one page, showing one section at a time.

Tabs/Hero

Design

Up to date

Flutter

Up to date

Widgetbook

Overview

Tabs divide a page into related sections and show one section at a time. Each tab carries a label with an optional icon, and the selected tab is marked by a change of colour and a stroke.

Usage

Number of Tabs

Whilst we don't have a fixed maximum number of tabs, we recommend that no more than 9 tabs should be used. If more than 9 tabs are needed, consider an alternative component.

Disabled Tabs

Do not disable tabs - showing a disabled tab would be confusing, and the fan wouldn't receive any feedback upon tapping it. If the fan is unable to tap on a tab, don't show it to begin with.

Container

The tab container holds multiple tabs. The tabs within the container can be fixed or scrollable and will have Spacing.s100 (8px) padding between them.

Tab Label

The Tab Label should clearly and succinctly describe the content within the tab. Labels should always appear on a single line, and never span 2 lines.

Icons

Tabs can include icons; these should be simple and recognisable.

Icons shouldn't be used alone within a tab as they aren't as effective as text labels when communicating content.

Selected State

To differentiate a selected state from a default state, the border will become much more prominent, and the colour will change.

Selected State Stroke

The stroke should be applied inside the tab, so that no slight jumping occurs when it is selected. This will also prevent any visual overhang when aligned with other content/elements.

Design

Appearance

Tabs/Appearance

Item

Usage

1

Light Mode

2

Dark Mode

Anatomy

Tabs/Anatomy

Item

Usage

1

Icon

2

Label

Container

Tabs/Container

Animation

shout-1 will be used when transitioning between selected and unselected states. See our Motion guidelines for more information.