Tabs

Android · iOS · Web
The Tabs component is under development and supports displaying content in a set of tabs.

Overview

Tabs facilitate navigation between different sections or features within an application.

Live demo

Messages tab content
Settings tab content
Appearance

Usage

Do

  • Use the Tab component when you need a clear and organised way for users to navigate between distinct sections or features of your application.

  • Use Tabs to organise content hierarchically, providing a clear structure for users to access different categories.

  • Provide clear visual feedback for interactions such as hover and active states to enhance the user experience.

  • Ensure Tabs adapt well to different screen sizes and orientations, facilitating a seamless experience on various devices.

Don't

  • Avoid overwhelming users with too many Tabs; prioritise key sections to prevent visual clutter.

  • When there are an excessive number of Tabs, it can overwhelm users; consider alternative navigation structures like dropdowns or a drawer.

  • Avoid using vague or unclear labels; users should easily understand the purpose of each Tab.

Placement

Place Tabs in a prominent location, such as the top of a page or within a designated navigation area, ensuring easy access and visibility.

Content guidelines

Include clear and concise labels within each Tab to represent the associated section or feature.

Styles

States and interactions

ExampleStateWhen to use
EnabledThe default state is the baseline appearance, indicating an unselected tab.
SelectedUse to communicate the tab is selected.
HoverApplied when the user hovers over the tab to indicate interactivity.
DisabledUse the disabled state to visually indicate that the tab cannot be interacted with.
ActiveUsed to communicate that the tab is active.
FocusUse to ensuring a clear and visible indicator for keyboard users.

Accessibility

  • Use semantic HTML elements for Tabs to ensure proper interpretation by assistive technologies.

  • Ensure all interactive elements are navigable and operable using keyboard controls.

  • Implement clear and visible focus indicators to highlight the focused Tab.

iOS guidance

Along with the guidance above, there is some iOS specific guidance for this component.

  • Support iOS Dynamic Type for adjusTable text size within Tabs, ensuring readability and inclusivity for users with varying visual abilities.