Package-level declarations
Functions
Renders a Material 3 button. The visual variant is picked by buttonType (filled, elevated, filled tonal, outlined or text) and its corner style by shape (square or rounded). Shows text together with an optional icon positioned by iconPosition. When loading is true the button shows a spinner instead of its content, and is disabled for real regardless of enabled so a slow action cannot be submitted twice. Dispatches onClick when tapped while interactive.
Default (small) FAB size — icon scaled to 24dp.
Default icon button variant — no background, standard content color.
Elevated button variant — shadowed surface-colored background, for use on top of other filled surfaces.
Filled button variant — solid background, highest emphasis.
Filled icon button variant — solid background, highest emphasis.
Filled tonal button variant — softer filled background, medium emphasis.
Filled tonal icon button variant — softer filled background, medium emphasis.
Places the icon after the text.
Places the icon before the text.
Renders a Material 3 icon button. The visual variant is picked by buttonType (default, filled, filled tonal or outlined). Shows icon with its color, size and style applied. When loading is true the button shows a spinner instead of the icon, and is disabled for real regardless of enabled so a slow action cannot be submitted twice. Dispatches onClick when tapped while interactive.
Large FAB size — icon scaled to 36dp.
Medium FAB size — icon scaled to 28dp.
Outlined button variant — transparent background with an outline border, medium emphasis.
Outlined icon button variant — transparent background with an outline border.
Rounded button shape — fully rounded (pill/circle) corners.
Square button shape — mapped to the theme's medium corner radius.
Text button variant — no background or border, lowest emphasis.