-
Notifications
You must be signed in to change notification settings - Fork 13
Buttons
Gunnar edited this page Dec 8, 2025
·
13 revisions
Buttons are the most common component to handle user input.
Buttons can contain different forms of content. The usual would be an Icon to display a Stack. By default, it arranges its content items horizontally.
Any content within the Button will call the onClick.
@Composable
fun Example() {
Button(
onClick = {
// Handle click here
}
) {
Icon(stack = ItemStack(Items.GREEN_CONCRETE).snapshot())
}
}