Tabs

    Tabs organize content across different screens, data sets, and other interactions.

    Interactive demo

    Usage

    Tabs organize and allow navigation between groups of content that are related and at the same level of the hierarchy.

    Principles

    Scalable: As tabs can horizontally scroll, a UI can have as many tabs as needed.

    Informative: Tabs organize content into categories to help users easily find different types of information.

    Peers: Tabs are displayed next to each other as peers, in categories of equal importance.

    Tabs in a set

    Each tab should contain content that is distinct from other tabs in a set. For example, tabs can present different sections of news, different genres of music, or different themes of documents.

    tabs in a set short text label
    Do
    Tab labels include only text. Text labels should be short.
    tabs in a set sequential content
    Don't
    Don't use tabs to move through sequential content that needs to be read in a particular order.
    tabs in a set single row
    Do
    Present tabs as a single row above their associated content.
    tabs in a set comparing content
    Don't
    Avoid using tabs for comparing content across multiple tabs, such as different sizes of the same item.

    Anatomy

    tabs anatomy
    1. Tab bar: Holds all tabs elements, and their size is evenly distributed.
    2. Active text label: Show the selected state with primary color.
    3. Active tab indicator: Show an indicator to make active state visible without relying on color for accessibility.
    4. Tab: This is a tab item that the user can select.

    Text label

    Text labels should clearly and succinctly describe the content of the tab they represent. Tab content should contain a cohesive set of items that share a common characteristic.

    Tab labels appear in a single row.

    tabs truncated text
    Don't
    Don't truncate labels unless required, as truncated text can impede comprehension.

    Active tab indicators

    To differentiate an active tab from an inactive tab, apply an underline and color change to the active tab's text. An underline and color change differentiate an active tab from the inactive ones.

    Behavior

    Moving between tabs

    Users can navigate between tabs by clicking a tab.

    Moving between tabs
    Moving between tabs

    To navigate between tabs, click on the individual tab. The tab container should always be left-aligned.

    The tabs will remain hidden until scrolled, to scroll between tabs use:

    • Trackpad by swiping left/right.
    • Shift + mouse wheel.
    Tabs behavior
    Tabs behavior

    Placement

    Tab layout

    Tabs are displayed in a single row, with each tab connected to the content it represents. As a set, all tabs are unified by a shared topic.

    tabs placement
    Do
    Place tabs above content.
    tabs placement caution
    Caution
    Avoid nesting a tab within another tab.
    tabs placement dont
    Don't
    Don't place tabs below one another.

    Tab placement

    Tabs can be nested into components such as Platform Navigation or cards.

    Tabs
    Tabs

    Tabs control the UI region displayed below them.

    Don't place tabs above content that they don't control. If tabs only change a section of the UI, embed them within that section.

    States

    By default, tabs inherit enabled states with one active state.

    The inactive state of a tab can inherit a hover, focus, and clicked state.

    The hover, focus, and pressed states of an enabled tab
    The hover, focus, and pressed states of an enabled tab

    The active state of a tab can inherit a hover, focus, and clicked state.

    The hover, focus, and pressed states of an active tab
    The hover, focus, and pressed states of an active tab

    Specs

    The width of each tab is determined by the text label's width in addition to 24px padding on left and right side.

    Some written content and images are sourced from the Material.io website on 2018–2020. Some of the design components featured in the system are based on Material.io downloads based on the Apache 2.0 and CC-BY 4.0 licensing.
    • Interactive demo
    • Usage
    • Principles
    • Tabs in a set
    • Anatomy
    • Text label
    • Active tab indicators
    • Behavior
    • Moving between tabs
    • Placement
    • Tab layout
    • Tab placement
    • States
    • Specs