# Tabs

<br />

Tabs are buttons that always occur in groups and are dependent on each other's state: only one can be active at any given time.
[![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Buttons component Buttons that are not tabs can operate independently of other buttons](https://developers.google.com/cars/design/automotive-os/components/buttons)

*** ** * ** ***

## Anatomy

![](https://developers.google.com/cars/design/automotive-os/components/images/tabs-anatomy-1.png) 1. Active tab icon  
2. Inactive tab icon  
3. Active tab label  
4. Inactive tab label

*** ** * ** ***

## Specs

### Tabs nested in app bar -- left aligned

![](https://developers.google.com/cars/design/automotive-os/components/images/tabs-spec-1.png) [![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Layout labels Definitions of E, M, KL, P, Flex](https://developers.google.com/cars/design/intro-terms#layout_labels) [![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
App bar \& header component Specs, style guidelines, and more](https://developers.google.com/cars/design/automotive-os/components/app-bar)

### Tabs nested in app bar -- flexible alignment

![](https://developers.google.com/cars/design/automotive-os/components/images/tabs-spec-3.png) With flexible alignment, the tab configuration stretches or compresses to fit the available space.

### Tabs collapsed in app bar -- drawer menu

![](https://developers.google.com/cars/design/automotive-os/components/images/tabs-spec-4.png) [![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
App bar \& header component Specs, style guidelines, and more](https://developers.google.com/cars/design/automotive-os/components/app-bar)

### Standalone tab bar -- left aligned

![](https://developers.google.com/cars/design/automotive-os/components/images/tabs-spec-6.png)

### Standalone tab bar -- flexible alignment

![](https://developers.google.com/cars/design/automotive-os/components/images/tabs-spec-5.png) With flexible alignment, the tab configuration stretches or compresses to fit the available space.

### Tab label string overflow

![](https://developers.google.com/cars/design/automotive-os/components/images/tabs-spec-2.png)

*** ** * ** ***

## Scaling layouts

These reference layouts show how to adapt tabs to accommodate screens of various widths and heights. (Width and height categories are defined in the [Layout](https://developers.google.com/cars/design/automotive-os/design-system/layout) section.) Note that all pixel values are in rendered pixels, before any down-sampling or up-sampling occurs.
[![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Layout Margins, keylines, and padding for various screen sizes](https://developers.google.com/cars/design/automotive-os/design-system/layout) [![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Layout labels Definitions of E, M, KL, P, Flex](https://developers.google.com/cars/design/intro-terms#layout_labels)

### Standard vs. wide screens in short height bracket

![](https://developers.google.com/cars/design/automotive-os/components/images/tabs-ar-1.png)

### Standard vs. wide screens in standard height bracket

![](https://developers.google.com/cars/design/automotive-os/components/images/tabs-ar-2.png)

### Standard vs. wide screens in tall height bracket

![](https://developers.google.com/cars/design/automotive-os/components/images/tabs-ar-3.png)

### Extra-wide and super-wide screens in all height brackets

![](https://developers.google.com/cars/design/automotive-os/components/images/tabs-ar-4.png)

*** ** * ** ***

## Styles

[![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Typography guidelines Scale and grid references, typographic examples, and more](https://developers.google.com/cars/design/automotive-os/design-system/typography) [![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Color guidelines Palettes, elevation and opacity values, and more](https://developers.google.com/cars/design/automotive-os/design-system/color)

### Typography

| Type style | Typeface | Weight | Size (dp) |
|---|---|---|---|
| Body 3 M | Roboto | Medium | 24 |
| Body 3 | Roboto | Regular | 24 |

### Color

| Element | Color(day mode) | Color (night mode) |
|---|---|---|
| Primary type / icons | White | White @ 88% |
| Secondary type / icons | White @ 72% | White @ 60% |
| Tab bar background | Black | Black |
| Tab bar background on scroll | Black @ 84% | Black @ 88% |
| Tab icon - active state | White | White @ 88% |
| Tab icon - inactive state | White @ 56% | White @ 50% |

### Sizing

| Element | Size (dp) |
|---|---|
| Primary icon | 44 |
| Secondary icon | 36 |
| Icon touch target | 76 |

*** ** * ** ***

## Examples

![](https://developers.google.com/cars/design/automotive-os/components/images/tabs-mock-1.png) Tabs collapsed ![](https://developers.google.com/cars/design/automotive-os/components/images/tabs-mock-3.png) Tabs nested in app bar ![](https://developers.google.com/cars/design/automotive-os/components/images/tabs-mock-2.png) Standalone tab bar