Extra
IconButton
A FormaUI icon button — "Material 3 with better defaults"; one entry point covers all four Material 3 icon button variants via variant, with a default-on press-scale micro-interaction (shared Modifier.formaPressScale) using a deeper 0.92 dip.
dev.formaui.components.iconbutton
StandardFilledTonalOutlined
Preview
This toggle is site chrome only — the preview has its own light/dark switch inside.
Live preview
Live preview — ~37 MB development build
Usage
FormaIconButton(onClick = { /* favorite */ }) {
Icon(Icons.Default.Star, contentDescription = "Favorite")
}
FormaIconButton(onClick = { /* menu */ }, variant = FormaIconButtonVariant.Filled) {
Icon(Icons.Default.Menu, contentDescription = "Open menu")
}Supporting API
- FormaIconButtonVariantenum
- The visual emphasis of a FormaIconButton, mirroring Material 3's four icon button variants: Standard, Filled, Tonal, Outlined.
- FormaIconButtonDefaultsobject
- Defaults for FormaIconButton: PressedScale (0.92 — a deeper press-scale dip than larger controls, so the feedback reads at icon size).
Accessibility
48dp minimum touch target and Role.Button semantics inherited from the underlying Material 3 icon button; content should be an Icon with a contentDescription since the button carries no text label of its own.