Tabs

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

Simple Tabs

Wrapped Labels

Long labels will automatically wrap on tabs. If the label is too long for the tab, it will overflow and the text will not be visible.

Fixed Tabs

Fixed tabs should be used with a limited number of tabs and when consistent placement will aid muscle memory.

Full width

The variant="fullWidth" property should be used for smaller views.

Centered

The centered property should be used for larger views.

Scrollable Tabs

These examples are contained within an AppBar. Tabs can be uncontained, or contained within an AppBar or other containers such as a humble div. As with any UI element, ensure that the background and text colors have appropriate contrast. You can check the accessibility of foreground and background colors with the WebAIM Color Contrast Checker tool.

Automatic Scroll Buttons

Left and right scroll buttons will automatically be presented on desktop and hidden on mobile (based on viewport width).

Forced Scroll Buttons

Left and right scroll buttons will be presented regardless of the viewport width.

Prevent Scroll Buttons

Left and right scroll buttons will never be presented. All scrolling must be initiated through user agent scrolling mechanisms (e.g. left/right swipe, shift-mousewheel, etc.).

Properties