-
-
Save KatieBarnett/8ce5af95504ac8d6c5df6861d747d162 to your computer and use it in GitHub Desktop.
Preview with composable preview parameter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Preview | |
@Composable | |
fun TextColoredComponentPreview( | |
@PreviewParameter(TextWithColorConfigProvider::class) data: TextData | |
) { | |
MaterialTheme { | |
Text(data.value().text, color = data.value().color) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment