Button

@Composable
fun Button(label: String, onClick: () -> Unit, modifier: Modifier = Modifier, hasFrame: Boolean = true)

Creates a org.gnome.gtk.Button that triggers a callback when clicked.

Parameters

label

The text displayed in the button.

onClick

Callback triggered when the button is clicked.

modifier

Compose Modifier for layout and styling.

hasFrame

Whether the button has a frame.


@Composable
fun Button(onClick: () -> Unit, modifier: Modifier = Modifier, hasFrame: Boolean = true, child: @Composable () -> Unit = {})

Creates a org.gnome.gtk.Button that triggers a callback when clicked.

Parameters

onClick

Callback triggered when the button is clicked.

modifier

Compose Modifier for layout and styling.

hasFrame

Whether the button has a frame.