# How to fix the Compose preview naming problem

DevFeed: [How to fix the Compose preview naming problem](<https://devfeed.tech/articles/how-to-fix-the-compose-preview-naming-problem-24849.md>)

Original publisher: [Read original article](<https://alexzh.com/how-to-fix-the-compose-preview-naming-problem/>)

Author: Alex Zhukovich

Published: 2026-01-21T23:07:36Z

Content type: tutorial

Language: en

Sources: [Alex Zhuk - Android development and testing](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [Compose](<https://devfeed.tech/topics/compose.md>), [Android Studio](<https://devfeed.tech/topics/android-studio.md>), [ui](<https://devfeed.tech/topics/ui.md>), [Tooling](<https://devfeed.tech/topics/tooling.md>)

Tags: [android-studio](<https://devfeed.tech/tags/android-studio.md>), [compose](<https://devfeed.tech/tags/compose.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

This tutorial explains how to replace index-based Compose preview names with descriptive custom display names. It covers naming preview states with PreviewParameterProvider, mapping labels directly to state objects, and the Android Studio and Jetpack Compose versions required for the feature.

## Source excerpt

If you use PreviewParameterProvider, you've probably struggled with index-based names like "uiState 0" and "uiState 1." Starting with ui-tooling-preview:1.10.0, you can finally add custom display names to your preview states.