PrimaryButtonLarge

fun PrimaryButtonLarge(text: String, onClick: () -> Unit, modifier: <Error class: unknown class> = Modifier, enabled: Boolean = true, leftIcon: <Error class: unknown class>? = null, rightIcon: <Error class: unknown class>? = null, isLoading: Boolean = false)

A large-sized Button themed based upon dev.ansa.sdk.ui.theme.colors.ButtonColors.primary.

Large sized buttons are defined as:

val sizing = ButtonSizes(
minWidth = Dp.Unspecified,
minHeight = 46.dp,
iconSize = 24.dp,
sidePadding = 4.dp,
iconPadding = 4.dp,
textStyle = AnsaTheme.typography.bodyMedium
)

val shape = RoundedCornerShape(16.dp)

Parameters

text

The text to display in the button

onClick

Will be called when user clicks on the element

modifier

The modifier to be applied to the Button.

enabled

Whether or not the button is enabled and interactive.

leftIcon

Optional left-aligned icon, provided as a Painter.

rightIcon

Optional right-aligned icon, provided as a Painter.

isLoading

If enabled, the contents of the button will be replaced with a loading indicator.