Kwik Text Button
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
container Color
Color sets the background color
text Color
Color sets the text color
shape
Shape sets the shape of the button
is Loading
Boolean indicates if button is loading
on Click
() -> 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
container Color
Color sets the background color
is Loading
Boolean indicates if button is loading
on Click
() -> Unit called when button is clicked