---
title: titleVariants
framework: carplay
role: symbol
role_heading: Instance Property
path: carplay/cpdashboardbutton/titlevariants
---

# titleVariants

The array of title variants for the button.

## Declaration

```swift
var titleVariants: [String] { get }
```

## Discussion

Discussion An array of title variants for this button in an arrangement from most- to least-preferred. The system selects a title from this array that best fits the available space. You provide the title variants to init(titleVariants:subtitleVariants:image:handler:) as localized, displayable content.

## See Also

### Accessing the Button Configuration

- [subtitleVariants](carplay/cpdashboardbutton/subtitlevariants.md)
- [image](carplay/cpdashboardbutton/image.md)
