AppButton

fun AppButton(text: StringResource, onClick: () -> Unit, modifier: Modifier = Modifier, type: ButtonType = ButtonType.PRIMARY, imageSource: AppImageSource? = null, iconTint: Color? = null, enabled: Boolean = true, backgroundColor: Color? = null, testTag: String? = null)

A custom button component that supports different styles (Primary, Secondary, Tertiary) and an optional leading image.

Parameters

text

The localized text for the button.

onClick

Callback triggered when the button is clicked.

modifier

Modifier for the button container.

type

The visual style of the button (ButtonType.PRIMARY, ButtonType.SECONDARY, ButtonType.TERTIARY).

imageSource

Optional leading icon for the button.

iconTint

Optional tint for the leading icon.

enabled

Whether the button is interactive.

backgroundColor

Optional background color override.

testTag

Tag for UI testing.


fun AppButton(modifier: Modifier = Modifier, text: String? = null, onClick: () -> Unit, type: ButtonType = ButtonType.PRIMARY, imageSource: AppImageSource? = null, iconTint: Color? = null, enabled: Boolean = true, backgroundColor: Color? = null, testTag: String? = null)

A custom button component that supports different styles (Primary, Secondary, Tertiary) and an optional leading image.

Parameters

modifier

Modifier for the button container.

text

The raw string for the button text.

onClick

Callback triggered when the button is clicked.

type

The visual style of the button (ButtonType.PRIMARY, ButtonType.SECONDARY, ButtonType.TERTIARY).

imageSource

Optional leading icon for the button.

iconTint

Optional tint for the leading icon.

enabled

Whether the button is interactive.

backgroundColor

Optional background color override.

testTag

Tag for UI testing.