Created
March 12, 2025 19:09
-
-
Save harmittaa/7d93062fd6d9cfe965b5ea042be8d351 to your computer and use it in GitHub Desktop.
ButtonPreview
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
@PreviewLightDark | |
@Composable | |
fun ButtonPreview() { | |
ComposeColorsTheme { | |
Surface { | |
Row { | |
Button( | |
onClick = {}, | |
enabled = true | |
) { | |
Text("Login") | |
} | |
Button( | |
onClick = {}, | |
enabled = false | |
) { | |
Text("Cancel") | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment