ContractButton

fun ContractButton(contract: ButtonContract, onClick: (String) -> Unit, modifier: Modifier = Modifier, onLongClick: (String) -> Unit? = null, onDoubleClick: (String) -> Unit? = null)

Constructs a Button from a ButtonContract.

Parameters

onClick

invokes the provided function with the action string provided in the contract.