KwikTextButton

fun KwikTextButton(modifier: Modifier = Modifier, text: Any, containerColor: Color = Color.Transparent, textColor: Color = MaterialTheme.colorScheme.primary, shape: Shape = MaterialTheme.shapes.medium, contentPadding: PaddingValues = PaddingValues(2.dp), isLoading: Boolean = false, onClick: () -> Unit = {})

Simple text button

Parameters

modifier

Modifier

text

can be a string, int or AnnotatedString

containerColor

Color sets the background color

textColor

Color sets the text color

shape

Shape sets the shape of the button

isLoading

Boolean indicates if button is loading

onClick

() -> Unit called when button is clicked


fun KwikTextButton(modifier: Modifier = Modifier, text: @Composable () -> Unit, containerColor: Color = Color.Transparent, isLoading: Boolean = false, onClick: () -> Unit = {})

Simple text button

Parameters

modifier

Modifier

text

content of the button

containerColor

Color sets the background color

isLoading

Boolean indicates if button is loading

onClick

() -> Unit called when button is clicked