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.
onClick
@Composable fun Example() { Button( onClick = { // Handle click here } ) { Icon(stack = ItemStack(Items.GREEN_CONCRETE).snapshot()) } }
There was an error while loading. Please reload this page.