Jenga Icon Button
A compact, icon-only button, for app-bar actions, toolbars, and inline controls where a labelled JengaButton would be too heavy.
The visible surface is size, but the touch target is always expanded to the 48dp accessibility minimum. The icon inherits the resolved content color via LocalJengaContentColor.
Parameters
called when tapped (ignored while disabled).
the Modifier for this button.
the visual style; see JengaIconButtonVariant.
whether the button is interactive.
the button shape; defaults to the theme's JengaIconButtonVariantStyle.shape for variant, else JengaIconButtonDefaults.shape.
the color set; defaults to JengaIconButtonDefaults.colors for variant.
the visible button size; the touch target is never smaller than 48dp. Defaults to the theme's JengaIconButtonVariantStyle.size for variant, else JengaIconButtonDefaults.Size.
the icon (typically a single JengaIcon); inherits content color.
Samples
JengaIconButton(
onClick = { },
variant = JengaIconButtonVariant.Standard,
content = {
JengaIcon(
imageVector = JengaIcons.Search,
contentDescription = "Search",
)
},
)