Jenga Button
A Jenga button: the primary way to trigger an action.
This is the convenience overload that renders a text label with the size-appropriate style. For custom content (e.g. icon + multi-style text), use the slot overload below.
Parameters
the button label.
called when the button is tapped (ignored while disabled/loading).
the Modifier for this button.
the visual style; see JengaButtonVariant.
the button size; see JengaButtonSize.
whether the button is interactive.
when true, shows a spinner and blocks clicks.
optional icon before the label.
optional icon after the label.
the color set; defaults to JengaButtonDefaults.colors for variant.
optional label shown beside the spinner while loading.
inner padding; defaults to the theme's JengaButtonSizeStyle.contentPadding for size, else JengaButtonDefaults.contentPadding.
the label style; defaults to JengaButtonDefaults.textStyle for size.
Samples
JengaButton(
text = "Check in",
onClick = { },
variant = JengaButtonVariant.Primary,
)A Jenga button with a custom content slot.
Parameters
called when the button is tapped (ignored while disabled/loading).
the Modifier for this button.
the visual style; see JengaButtonVariant.
the button size; see JengaButtonSize.
whether the button is interactive.
when true, shows a spinner and blocks clicks.
optional icon before the content.
optional icon after the content.
the button shape; defaults to the theme's JengaButtonSizeStyle.shape for size, else JengaButtonDefaults.shape.
the color set; defaults to JengaButtonDefaults.colors for variant.
inner padding; defaults to the theme's JengaButtonSizeStyle.contentPadding for size, else JengaButtonDefaults.contentPadding.
the button content; rendered with the resolved content color.