Skip to main content

Tabs

A navigational component that organizes content into separate, switchable sections, making it easy for users to browse and access related information without navigating to a new page or view.

Key Features

  • Two types

    Features two unique styles, each designed to enhance the adaptability and aesthetic appeal of your user interface.

  • Range wide of variants

    Numerous variants are provided, offering the ability to customize Tabs by adding extra properties such as a Counter or Icons. You may also choose to use Icons exclusively.

Variants

Group

Type

The Tab offers two distinct types - Default (top) and Ghost (bottom) to providing diverse visual styles and enhancing interface adaptability.

Density

Supports varying densities, allowing for both compact and spacious layouts to accommodate different design requirements and preferences, ensuring a flexible and visually appealing navigation experience.

PropertyValuesDefault value
Compact
Yes / No
No
Type
Default, Ghost
Default

Tab Item

Before Icon

The icon on the left draws the user's attention and allows for faster scanning and understanding of the tab’s meaning.

Counter

Counter feature, displaying the number of items or notifications associated with each tab.

Only Icon

Presents a minimalist and visually engaging design, utilizing icons to represent different tabs, and streamlining navigation.

States

The Tabs delivers visual feedback and promotes user understanding of navigation options within the interface. That's why the Tab component showcases various states, reflecting its interaction context.

PropertyValuesDefault value
Only Icon
Yes / No
No
State
Normal, Hover, Active, Focus, Selected, Disabled, Selected Disabled
Normal
Before Icon
Yes / No
No
Counter
Yes / No
No

Anatomy

tabs anatomy
  1. Default type
    1. Label
    2. Container
    3. Bottom Border
  2. Ghost type
    1. Label
    2. Container
Tabs anatomy
  1. Default type
    1. Before Icon
    2. Label
    3. Counter
  2. Ghost type
    1. Before Icon
    2. Label
    3. Counter

Best Practices

Too many Tabs

If you encounter a situation where the number of tabs exceeds the available horizontal space on the screen, you have two options: enable horizontal scrolling or use a subtle dropdown menu for all tab items. Avoid shortening several tab names just to accommodate them in the limited horizontal space.

The last solution could be combining tabs into one.

Do
Don't

Arrange tabs in a logical order

Place the most frequently accessed or important tabs at the beginning of the tab list. Avoid arrange tabs randomly, making it difficult for users to predict or locate the desired content.

This helps users navigate more efficiently and find relevant content faster.

Do
Don't

Content Guidelines

Keep labels clear

Must be clear, easy to understand, and use easy language accessible to everyone. Have short and scannable labels, generally kept to a single word.
Do
Don't