How to remove margins from compose-desktop Button?

Viewed 19

Having this:

@Preview
@Composable
fun ButtonTest() {
    Button(onClick = {}, Modifier.border(1.dp, Color.Red)) {
        Text("test")
    }
}

produced UI looks like this:

enter image description here

How can I remove white margins at top and bottom?

0 Answers
Related