ActionOutlinedButton

fun ActionOutlinedButton(modifier: Modifier = Modifier, text: String, textColor: Color = Color.Unspecified, icon: Painter, iconTint: Color? = null, isInProgress: Boolean = false, onClick: () -> Unit, enabled: Boolean = true, border: BorderStroke? = ButtonDefaults.outlinedButtonBorder(enabled = enabled))

Common outlined button with an icon, that can change to a progress indicator.

Parameters

modifier

Modifier to be used for the button.

text

Text to be shown on the button.

textColor

Color of the text.

icon

A painter to be shown in the button icon.

iconTint

Color of the icon, defaults to the current content color.

isInProgress

A flag that will indicate if the action is in progress and this will show a progress indicator in front of the button text instead of the icon.

onClick

Action to be performed on button click.

enabled

Flag to enable or disable the button.

border

Border to be used for the button.


fun ActionOutlinedButton(modifier: Modifier = Modifier, text: String, textColor: Color = Color.Unspecified, icon: ImageVector, iconTint: Color? = null, isInProgress: Boolean = false, onClick: () -> Unit, enabled: Boolean = true, border: BorderStroke? = ButtonDefaults.outlinedButtonBorder(enabled = enabled))

Common outlined button with an icon, that can change to a progress indicator.

Parameters

modifier

Modifier to be used for the button.

text

Text to be shown on the button.

textColor

Color of the text.

icon

A ImageVector to be shown in the button icon.

iconTint

Color of the icon, defaults to the current content color.

isInProgress

A flag that will indicate if the action is in progress and this will show a progress indicator in front of the button text instead of the icon.

onClick

Action to be performed on button click.

enabled

Flag to enable or disable the button.

border

Border to be used for the button.