Marc Reichelt
06/30/2026, 2:11 PMpreview-test-data , preview-theme-sunny and preview-theme-cloudy .
In our feature module, I would like to now import these, and then use functions from those in the previews, like:
@Preview
@Composable
fun MyFeaturePreview() {
Column {
SunnyTheme { MyFeature(testData) }
CloudyTheme { MyFeature(testData) }
}
}
I've tried different variations of commonMain.runtimeOnly and androidRuntimeClasspath, with no luck.
Maybe I'm not seeing things clear, and I should actually just be using implementation? Just want to confirm how this is properly done in CMP.