IconButton

@Composable
fun IconButton(icon: ImageSource.Icon, onClick: () -> Unit, modifier: Modifier = Modifier, hasFrame: Boolean = true)

Creates a org.gnome.gtk.Button with a single icon.

Parameters

icon

The icon 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.